0

Hi is there a quick API call to get the transaction history of a specific NFT or collection of NFTs in BlockFrost?

2 Answers 2

1

Yes, there’s an endpoint for the asset transactions here:

https://docs.blockfrost.io/#tag/Cardano-Assets/paths/~1assets~1{asset}~1transactions/get

and also one for mint & burning history here:

https://docs.blockfrost.io/#tag/Cardano-Assets/paths/~1assets~1{asset}~1history/get

4
  • {asset}=nft asset id ?
    – KryptoKing
    Jun 22 at 12:53
  • 1
    Yes it’s the policy id combined with the hex encoded asset name, simply concatenated. Example from the docs: b0d07d45fe9514f80213f4020e5a61241458be626841cde717cb38a76e7574636f696e
    – sean
    Jun 22 at 12:56
  • is there a quick way to get the hex-encoded assetname?
    – KryptoKing
    Jun 25 at 15:57
  • You can just strip off the first 56 characters and you're left with the hex encoded asset name, eg using substring: asset.substring(56)
    – sean
    2 days ago
2

combination of the policy_id and hex encoded asset_name needs to be provided as an input parameter for this endpoint: Blockfrost - Specific Asset

New contributor
Mirris is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.