Problem getting asset id from "nft name"?

When minting nft token, it is “Google Glass” as Asset name. from this, I just want to know asset id which is just only number groups.
476f6f676c65476c617373 (Google Glass)

Hi!

please provide the transaction view with command:

$ cardano-cli transaction view
Usage: cardano-cli transaction view (--tx-body-file FILE | --tx-file FILE)
  Print a transaction

Available options:
  --tx-body-file FILE      Input filepath of the JSON TxBody.
  --tx-file FILE           Input filepath of the JSON Tx.
  -h,--help                Show this help text

1 Like

I found it.
echo -n "asset name " | xxd -ps

great! if you have the source of the info please share, but isnt it placed into the transaction?

please check this url.
docs.cardano.org/en/latest/native-tokens/using-the-token-registry/token-registry.html

1 Like

just checked my transaction about token minting and it is there, under policies:

$ cardano-cli transaction view  --tx-body-file matx.raw
auxiliary data: null
auxiliary data hash: null
certificates: []
era: Mary
fee: 179757
inputs:
- 2d6125136662b6eb63974e01459bb4bc7233822548c6da75a95d19d262bbd438#0
mint:
  lovelace: 0
  policies:
    c2b215091158f44d2262b76ada88d6ded6a6b756548b041f3bc978c3:
      '6164617070746572': 2019
outputs:
- address:
    Bech32: addr1vytmc2nvcma4mqyl650l4fjmpz4g6vx4mjpdynmgadpnplgd7ycte
    credential:
      key hash: 17bc2a6cc6fb5d809fd51ffaa65b08aa8d30d5dc82d24f68eb4330fd
    network: Mainnet
    stake reference: StakeRefNull
  amount:
    lovelace: 9820243
    policies:
      c2b215091158f44d2262b76ada88d6ded6a6b756548b041f3bc978c3:
        '6164617070746572': 2019
update: null
validity interval:
  invalid before: null
  invalid hereafter: null
withdrawals: []

Thank you. I found the policyid and assetid in your solution, but was not sure how can I extract that from output.
Can you please explain how can get “asset id” from the above output?