Get account NFT ownership

Get account NFT ownerships

GET /accounts/{account_identifier}/nft-token-ownership

Query params

Query paramDescription

contract_package_hash

Contract package 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

Response

PaginatedResponse<NFTTokenOwnership>

Example

curl -X 'GET' \
  'https://api.testnet.cspr.cloud/account/1de39471ba0a9e8fa627a27fb01f261dc73ca8f8942c01982c03c4c73a193893/nft-token-ownership' \
  -H 'accept: application/json' \
  -H 'authorization: 55f79117-fc4d-4d60-9956-65423f39a06a'
{
  "data": [
    {
      "contract_package_hash": "00530561446e9ca68b04b2bfbb3fc9cfad9e444340c954b970fbd524ff3c25ee",
      "owner_hash": "1de39471ba0a9e8fa627a27fb01f261dc73ca8f8942c01982c03c4c73a193893",
      "owner_type": 0,
      "tokens_number": 1
    },
    {
      "contract_package_hash": "998af6825d77da15485baf4bb89aeef3f1dfb4a78841d149574b0be694ce4821",
      "owner_hash": "1de39471ba0a9e8fa627a27fb01f261dc73ca8f8942c01982c03c4c73a193893",
      "owner_type": 0,
      "tokens_number": 1
    }
  ]
}

Last updated