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, 2022 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, 2022 at 12:56
  • is there a quick way to get the hex-encoded assetname?
    – KryptoKing
    Jun 25, 2022 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
    Jun 26, 2022 at 8:17
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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