Reading metadata from CLI

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 ?

Unfortunately, cardano-cli cannot query metadata. Here are a couple of alternative approaches:

  1. Run cardano-db-sync and use SQL queries to obtain the information.
  2. Run cardano-graphql and use GraphQL queries.
  3. Use a third-party service like or
  4. Write custom Haskell code based on the cardano-client-demo.
1 Like