Metadata transaction in cardano blockchain

i am newbie here. i want to send metadata transacation untuk cardano-cli. I followed the instruction here How to create a metadata transaction using cardano-cli | Cardano Developer Portal. when i perform this command : cardano-cli transaction submit --tx-file tx.signed --testnet-magic 1097911063
the error occured was like this :
cardano-cli: HandshakeError (Refused NodeToClientV_15 “version data mismatch: NodeToClientVersionData {networkMagic = NetworkMagic {unNetworkMagic = 2}, query = False} /= NodeToClientVersionData {networkMagic = NetworkMagic {unNetworkMagic = 1097911063}, query = False}”)

i try to resove by learn from many resource it seems the version of cardano node didnt match. i have no idea about this. i want to submit the metatrasaction using cardano-cli, i thought i can learn alot if i start from cardano-cli rather than API like python API etc. Anybody have a clue about this problem?

Well, the testnet with the magic number 1097911063 was discontinued some time ago. We now have Preprod with magic number 1 and Preview with magic number 2.

The error indicates that your cardano-node is a Preview one.

So, change

cardano-cli transaction submit --tx-file tx.signed --testnet-magic 1097911063


cardano-cli transaction submit --tx-file tx.signed --testnet-magic 2

thanks for your help, it worked now…

1 Like