LogoLogo
1.3.x
1.3.x
  • Documentation
    • Introduction
    • Overview
      • Authorization
      • Rate limits and quotas
      • Pagination
      • Sorting
      • Filtering
      • Optional properties
      • Errors
    • Getting started
    • Highlights
      • Including related entities
      • Including CSPR rates
      • Including account info
      • Accessing auction data
      • Accessing token data
      • Accessing NFT data
      • De-anonymizing account hashes
      • De-anonymizing account purses
      • Receiving contract-level events
    • Changelog
  • REST API
    • Reference
    • Account
      • Get account
      • Get accounts
    • Account Info
      • Get account info
      • Get account infos
    • Auction metrics
      • Get auction metrics
    • Awaiting deploy
      • Create Awaiting Deploy
      • Add Awaiting Deploy signatures
      • Get Awaiting Deploy
    • Block
      • Get block
      • Get blocks
      • Get validator blocks
    • Bidder
      • Get bidder
      • Get bidders
    • Centralized account info
      • Get centralized account info
      • Get centralized account infos
    • Contract
      • Get contract
      • Get contracts
      • Get contracts by contract package
      • Get contract types
    • Contract entry point
      • Get contract entry points
      • Get contract entry point costs
    • Contract package
      • Get contract package
      • Get contract packages
      • Get account contract packages
    • Delegation
      • Get account delegations
      • Get validator delegations
    • Delegator reward
      • Get account delegator rewards
      • Get total account delegation rewards
      • Get total validator delegators' rewards
    • Deploy
      • Get deploy
      • Get deploys
      • Get account deploys
      • Get block deploys
      • Get deploy execution types
    • Fungible token action
      • Get fungible token actions
      • Get fungible token action types
      • Get account fungible token actions
      • Get contract package fungible token actions
    • Fungible token ownership
      • Get account fungible token ownership
      • Get contract package fungible token ownership
    • Non-fungible token (NFT)
      • Get NFT
      • Get account NFTs
      • Get contract package NFTs
      • Get NFT standards
      • Get off-chain NFT metadata statuses
    • Non-fungible token (NFT) action
      • Get contract package NFT actions for a token
      • Get account NFT actions
      • Get contract package NFT actions
      • Get NFT action types
    • Non-fungible token (NFT) ownership
      • Get contract package NFT ownership
      • Get account NFT ownership
    • CSPR rate
      • Get the current currency rate
      • Get historical currency rates
      • Get currencies
    • CSPR supply
      • Get supply
    • Transfer
      • Get account transfers
      • Get deploy transfers
    • Validator
      • Get validator
      • Get validators
    • Validator performance
      • Get historical validator performance
      • Get historical average validator performance
      • Get historical average validators performance
    • Validator reward
      • Get validator rewards
      • Get validator total rewards
  • Streaming API
    • Reference
    • Account balance
    • Block
    • Contract
    • Contract package
    • Contract-level events
    • Deploy
    • Fungible token action
    • Non-fungible token (NFT)
    • Non-fungible token (NFT) action
    • Transfer
  • Casper Node API
    • Connecting with an SDK
Powered by GitBook
On this page
  • Properties
  • Optional properties
  • Relations
  • Endpoints
  • Relation endpoints
Export as PDF
  1. REST API

Non-fungible token (NFT) action

PreviousGet off-chain NFT metadata statusesNextGet contract package NFT actions for a token

Last updated 8 months ago

The NFTTokenAction entity describes standard actions that can be performed on NFTs, such as mint, transfer, burn etc. CSPR.cloud supports NFTs compatible with the and Casper Network standards.

Properties

The NFTTokenAction entity has the following properties:

Property
Type
Description

deploy_hash

string(64)

Deploy hash in which the token action occurred. First part of token action identifier, represented as a hexadecimal string

block_height

uint64

Height of the block in which the token action occurred.

token_tracking_id

string

contract_package_hash

string(64)

Contract package hash of the NFT contract, represented as a hexadecimal string

from_hash

string(64)

Action source account or contract hash, represented as a hexadecimal string

from_type

uint8

Action source hash type: 0 for account, 1 for contract

to_hash

string(64)

Action target account or contract hash, represented as a hexadecimal string

to_type

uint8

Action target hash type: 0 for account, 1 for contract

nft_action_id

uint8

token_id

string

Token ID presented on the network

timestamp

uint16

The timestamp of performed token action

Example

{
  "contract_package_hash": "542359cb825bbf2a10017db5cb31b8862df7a64784e39b947678164156050d89",
  "deploy_hash": "1a9d50b16af889d2c3bd32e54216150d3bb2e0718d2a6572bb33167d1297460c",
  "block_height": 2404577,
  "from_hash": "3411d3b4d457af0309f3ee967d18ca53fdff749caa60314aeb47f2ff9f99c1c1",
  "from_type": 0,
  "nft_action_id": 5,
  "timestamp": "2021-08-11T07:20:18Z",
  "to_hash": "3411d3b4d457af0309f3ee967d18ca53fdff749caa60314aeb47f2ff9f99c1c1",
  "to_type": 0,
  "token_id": "US-7000001-XTest6",
  "token_tracking_id": 5
}

Optional properties

Depending on the endpoint some of the following optional properties may be included in the NFTTokenAction entity:

Property
Type
Description

contract_package

NFT contract package

deploy

Deploy in which the token action occurred

from_public_key

string(68)

Action source public key if it's an account

to_public_key

string(68)

Action target public key if it's an account

Relations

Entity
Mapping property
Description

contract_package_hash

NFT actions belong to a contract package

from_hash, to_hash

NFT actions could have accounts as the action source and target

tracking_id

NFT actions are performed under non-fungible tokens

Endpoints

The NFTTokenAction entity has the following endpoints:

Relation endpoints

The NFTTokenAction entity has the following relation endpoints:

ID describes relation with corresponded . Second part of token action identifier

type identifier

CEP-47
CEP-78
Get contract package NFT actions for a token
Get account NFT actions
Get contract package NFT actions
Get NFT action types
NFTToken
NFT action type
ContractPackage
Deploy
Contract package
Account
NFTToken