XRP Ledger Apex is back in Amsterdam

Register Now
Last updated
Edit

nft_info

[Source]

The nft_info command asks the Clio server for information about the NFT being queried. New in: Clio v2.0.0

Request Format

An example of the request format:

  1. WebSocket
  2. JSON-RPC
{
  "id": 1,
  "command": "nft_info",
  "nft_id": "00080000B4F4AFC5FBCBD76873F18006173D2193467D3EE70000099B00000000"
}

Try it! >

The request contains the following parameters:

FieldTypeDescription
nft_idStringA unique identifier for the non-fungible token (NFT).
ledger_hashString(Optional) A 20-byte hex string for the ledger version to use. (See Specifying Ledgers)
ledger_indexString or Unsigned Integer(Optional) The ledger index of the ledger to use, or a shortcut string to choose a ledger automatically. Do not specify the ledger_index as closed or current; doing so forwards the request to the P2P rippled server and the nft_info API is not available on rippled. (See Specifying Ledgers)

If you do not specify a ledger version, Clio uses the latest validated ledger.

Response Format

An example of a successful response:

  1. WebSocket
  2. JSON-RPC
{
  "id": 1,
  "result": {
    "nft_id": "00080000B4F4AFC5FBCBD76873F18006173D2193467D3EE70000099B00000000",
    "ledger_index": 270,
    "owner": "rG9gdNygQ6npA9JvDFWBoeXbiUcTYJnEnk",
    "is_burned": true,
    "flags": 8,
    "transfer_fee": 0,
    "issuer": "rHVokeuSnjPjz718qdb47bGXBBHNMP3KDQ",
    "nft_taxon": 0,
    "nft_serial": 0,
    "validated": true
  },
  "status": "success",
  "type": "response",
  "warnings": [
    {
      "id": 2001,
      "message": "This is a clio server. clio only serves validated data. If you want to talk to rippled, include ledger_index:current in your request"
    },
    {
      "id": 2002,
      "message": "This server may be out of date"
    }
  ]
}

The response follows the standard format, with a successful result containing an nft_info response object with some arrangement of the following fields:

FieldTypeDescription
nft_idStringA unique identifier for the non-fungible token (NFT).
ledger_indexIntegerThe ledger index of the most recent ledger version where the state of this NFT was modified, as in the NFT was minted (created), changed ownership (traded), or burned (destroyed). The information returned contains whatever happened most recently compared to the requested ledger.
ownerStringThe account ID of this NFT's owner at this ledger index.
is_burnedBooleanReturns true if the NFT is burned at this ledger, or false otherwise.
flags IntegerThe flag set of this NFT.
transfer_feeIntegerThe transfer fee of this NFT. See NFTokenMint Fields for more information on transfer fees.
issuerStringThe account ID which denotes the issuer of this NFT.
nft_taxonIntegerThe NFT’s taxon.
nft_serialIntegerThe NFT’s sequence number.
uriStringThe NFT's URI, or an empty string if the NFT does not have a URI. Updated in: Clio v2.0.0

Possible Errors