Get contract package NFT ownership

Get contract package NFT ownerships

GET /contract-packages/{contract_package_hash}/nft-token-ownership

Query params

Query paramDescription

owner_hash

Owner hash

Sorting

PropertyDescription

tokens_number

Sort NFT token ownership by tokens number

Default sorting is tokens_number DESC

Optional properties

PropertyTypeDescription

contract_package

Fungible contract package

owner_public_key

string(68)

Owner public key if it's an account

account_info

Owner account info

centralized_account_info

Owner centralized account info

cspr_name

string

Owner account CSPR.name

Response

PaginatedResponse<NFTTokenOwnership>

Example

curl -X 'GET' \
  'https://api.testnet.cspr.cloud/contract-packages/000f00b1c6b691b47c1006730bd39812c598f4660e2420a5f5e2f9106865fed1/nft-token-ownership' \
  -H 'accept: application/json' \
  -H 'authorization: 55f79117-fc4d-4d60-9956-65423f39a06a'
{
  "data": [
    {
      "contract_package_hash": "0074557b46c7a7c13e0b178e4463f451325129d845e9e494425d39cfd40e619d",
      "owner_hash": "532402a902ee117a772b2471df237346c906eddeb1580e18fa8b71ea559b9d2f",
      "owner_type": 0,
      "tokens_number": 1
    },
    {
      "contract_package_hash": "0074557b46c7a7c13e0b178e4463f451325129d845e9e494425d39cfd40e619d",
      "owner_hash": "d619411005c1255ca0cfdc9121d0e0a60d2b4e8da354e4d8768e8ea9378635d6",
      "owner_type": 0,
      "tokens_number": 2
    },
    {
      "contract_package_hash": "0074557b46c7a7c13e0b178e4463f451325129d845e9e494425d39cfd40e619d",
      "owner_hash": "e92b24043adab658450b1a00a82f4ae6dcba196972081175317dff1702e3772b",
      "owner_type": 0,
      "tokens_number": 2
    }
  ]
}

Last updated