Get NFT

Get NFT by contract package hash and token ID

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

Query params

None

Sorting

None

Default sorting is timestamp DESC

Optional properties

PropertyTypeDescription

contract_package

NFT contract package

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/0' \
  -H 'accept: application/json' \
  -H 'authorization: 55f79117-fc4d-4d60-9956-65423f39a06a'
{
  "data": {
    "contract_package_hash": "006c68af5f767e406cccd326f8d8bba81dec20d2578f308d33e3bbf08ee5d383",
    "block_height": 1461592,
    "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
  }
}

Last updated