Smiley
1
Hi everyone,
How can I read the metadata of a NFT using the cardano-cli
?
I have the address and I can view the tokens using:
cardano-cli query utxo --address $address --testnet-magic 1097911063
Can this be done using either the TxHash
or NFTPolicyId.NFTName
?
bwbush
2
Unfortunately, cardano-cli
cannot query metadata. Here are a couple of alternative approaches:
- Run
cardano-db-sync
and use SQL queries to obtain the information.
- Run
cardano-graphql
and use GraphQL queries.
- Use a third-party service like https://blockfrost.io or https://dandelion.link/.
- Write custom Haskell code based on the
cardano-client-demo
.
1 Like