Cardano: Submit Cardano Blockchain Transactions with Embedded Metadata Stored on Filebase
Learn how to submit Cardano blockchain transactions with embedded metadata stored on IPFS.
What is Cardano?
1. Create your payment key pair for the transaction:
cardano-cli address key-gen \\
--verification-key-file payment.vkey \\
--signing-key-file payment.skey2. Create a Cardano wallet if you haven’t previously:
3. Add some test tAda funds using the testnet faucet.
4. Next, create a metadata.json file. Input the following content:
5. Next, we’ll upload this file to Filebase.
6. Once the file has been uploaded to Filebase, we need to retrieve the IPFS CID.
7. Next, query the available UTXO from your wallet address:
8. Now we’ll submit our transaction to the Cardano blockchain.
9. Calculate the transaction fee with the following command:
10. Rebuild the transaction with the calculated fee:
11. Sign the transaction:
12. Finally, submit the transaction:
Last updated