Get nft events

Retrieves a list of all nft events associated with an account or a contract identifier.

GET

/extended/v1/address/{principal}/nft_events

Deprecated

This endpoint is deprecated in favor of Get nft holdings.

Retrieves a list of all NFTs owned by an address and contains the Clarity value of the identifier of the NFT.

Path Parameters

principal
Required
string

Stacks address or a contract identifier

Example: "SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0"

Query Parameters

limitinteger

Number of items to return

offsetinteger

Number of items to skip

Example: 42000

unanchoredboolean

Include transaction data from unanchored (i.e. unconfirmed) microblocks

Example: trueDefault: false

until_blockstring

Returned data representing the state up until that point in time, rather than the current block. Note: use either of the query parameters but not both at a time.

Example: 60000
Status codeDescription
200Success
Terminal
curl -X GET "https://api.mainnet.hiro.so/extended/v1/address/SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0/nft_events"
Example response
{
  "limit": 0,
  "offset": 0,
  "total": 0,
  "nft_events": [
    {
      "sender": "string",
      "recipient": "string",
      "asset_identifier": "string",
      "asset_event_type": "string",
      "value": {
        "hex": "string",
        "repr": "string"
      },
      "tx_id": "string",
      "tx_index": 0,
      "block_height": 0,
      "event_index": 0
    }
  ]
}