Get token metadata

Get all the NFT token metadata uploaded by you

πŸ”­ Guide overview

In this guide, you will fetch all NFTs' metadata. Ensure your client is created create a client ↗️.

🏷️ Use-case xamples with the Croak NFT metadata APIs

  • Fetch all the tokens that you have created within a client to show in a gallery
  • Find and update some token metadata details of a token

🧱 Implementation steps

  1. Client X-API-KEY: You will need the x-api-key from the client creation API response to proceed further.
  2. Make the fetch request : Make the following API request. See API Reference to get the code snippets in multiple languages
> curl --request GET \
     --url 'https://be.namasteapis.com/blockchain/v1/token-data/list?size=50' \
     --header 'Accept: application/json' \
     --header 'x-api-key: test_key.U6ZnqkIv7~piiqElYkyO'
     
     
{
  "data": {
    "tokens": [
      {
        "id": "62de5075908167125627763f",
        "creatorId": "62de50119081671256277626",
        "type": "ERC1155_LAZY",
        "name": "Prime 10th Anniversary welcomes Zupay",
        ...
      },
      {
        "id": "62de50159081671256277629",
        "creatorId": "62de50119081671256277626",
        ...
      }
    ],
    "lastId": "62de50159081671256277629"
  },
  "success": true,
  "message": "Token data saved"
}

You can try it yourself 😎 here!

  1. That's it you're done 🏁

πŸ“Œ Code example and further queries

For any queries or guidance, join https://croak.discord.com or write to [email protected]