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)

PreviousGet contract package fungible token ownershipNextGet NFT

Last updated 8 months ago

The NFTToken entity provides representation of an NFT on Casper Network. CSPR.cloud supports NFTs compatible with the and Casper Network standards.

Properties

The NFTToken entity has the following properties:

Property
Type
Description

contract_package_hash

string(64)

NFT contract package hash represented as a hexadecimal string. First of of token identifier

block_height

uint64

Height of the block in which the token was minted.

token_id

string

Token ID under the contract. Second part of token identifier

token_standard_id

uint8

owner_hash

string(64)

NFT token owner account or contract hash, represented as a hexadecimal string

owner_type

uint8

NFT owner type. 0 for account, 1 for contract

onchain_metadata

JSON

On-chain NFT metadata

offchain_metadata

JSON

Off-chain NFT metadata

offchain_metadata_status

uint8

is_burned

bool

true if the token was burn

tracking_id

uint32

timestamp

uint16

The timestamp of token creation

Example

{
  "contract_package_hash": "04682e17e5a86d594d9fd2bf37c766834bbaa412499bd6b5ac4ce76449708797",
  "block_height": 2404577,
  "is_burned": false,
  "offchain_metadata": {
    "attributes": [
      {
        "trait_type": "BG",
        "value": "Bg-1"
      },
      {
        "trait_type": "BG lines",
        "value": "Bg-Line-21"
      },
      {
        "trait_type": "Strpse",
        "value": "Card-stripse-01"
      }
    ],
    "description": "The first Tornado Master NFT minted by GuardianLink using Casper to announce the partnership with Casper.",
    "image": "https://arweave.net/H5RHizXPJez8zNMC07RVZxCApW42nSfF7FQk4jwyLHs",
    "name": "Tornado Master #0"
  },
  "offchain_metadata_status": 2,
  "onchain_metadata": {
    "name": "Tornado-Demo",
    "symbol": "TD",
    "token_uri": "https://yslkpbmdp345dabuwtvg65sqgd62lnpk2bp6mwha5hsrqxocw24q.arweave.net/xJanhYN--dGANLTqb3ZQMP2lterQX-ZY4OnlGF3Ctrk"
  },
  "owner_hash": "f41b57283a23958405373e8fbd9195ddbe71e8ea98fb2f4397ab09b2f63198af",
  "owner_type": 0,
  "timestamp": "2023-11-22T12:22:21Z",
  "token_id": "0",
  "token_standard_id": 2,
  "tracking_id": 258547
}

Optional properties

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

Property
Type
Description

contract_package

NFT contract package

owner_public_key

string(68)

Owner public key if it's an account

Relations

Entity
Mapping property
Description

contract_package_hash

NFT tokens belong to a contract package

from_hash, to_hash

NFT token could have accounts as the token owner

tracking_id

NFT token actions are mapped by contract package hash and token id

Endpoints

The NFTToken entity has the following endpoints:

Relation endpoints

The NFTToken entity has the following relation endpoints:

identifier

identifier

Unique ID describes relation with corresponded .

CEP-47
CEP-78
Get NFT
Get account NFTs
Get contract package NFTs
Get NFT standards
Get off-chain NFT metadata statuses
NFT standard
NFT token offchain metadata status
NFTTokenAction
ContractPackage
Contract package
Account
NFTTokenAction