Get contract package NFTs

Get NFT contract package tokens by its hash

GET /contract-packages/{contract_package_hash}/nft-tokens

Query params

None

Sorting

PropertyDescription

token_id

Sort tokens by token_id

timestamp

Sort tokens by timestamp

Default sorting is timestamp DESC

Optional properties

PropertyTypeDescription

owner_public_key

string(68)

Owner public key if it's an account

Response

PaginatedResponse<NFTToken>

Example

curl -X 'GET' \
  'https://api.testnet.cspr.cloud/contract-packages/006c68af5f767e406cccd326f8d8bba81dec20d2578f308d33e3bbf08ee5d383/nft-tokens' \
  -H 'accept: application/json' \
  -H 'authorization: 55f79117-fc4d-4d60-9956-65423f39a06a'
{
  "data": [
    {
      "contract_package_hash": "006c68af5f767e406cccd326f8d8bba81dec20d2578f308d33e3bbf08ee5d383",
      "is_burned": false,
      "offchain_metadata": null,
      "offchain_metadata_status": 3,
      "onchain_metadata": {
        "token_uri": "{\"token_uri\":\"ipfs://QmZa1hrX5FJRxyNyEbYjTVPJ6mbQtA3wJu1RjQpv9am6n2\"}"
      },
      "owner_hash": "8e09f028baff4e3a851e70bb8a5dc02eae7f8cb7faf1b52d9c8dafa7f41fa55c",
      "owner_type": 1,
      "timestamp": "2022-10-18T15:22:06Z",
      "token_id": "0",
      "token_standard_id": 1,
      "tracking_id": 20458
    }
  ],
  "item_count": 1,
  "page_count": 1
}

Last updated