Account Methods
List NFTs owned by an account
wss://honeycluster.io
rpc method: account_nfts

Returns a list of NFTokens held by the specified account.

Try it now
Response · account_nfts WS Response
{
  "result": {
    "account": "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn",
    "account_nfts": [
      {
        "Flags": 8,
        "Issuer": "rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe",
        "NFTokenID": "00080000B4F4AFC5984A241ACF7DBAF0FA866A7B95C0A4E8166DC5230000001B",
        "NFTokenTaxon": 0,
        "URI": "68747470733A2F2F6578616D706C652E636F6D2F6E6674",
        "nft_serial": 27
      }
    ],
    "ledger_index": 89012345
  },
  "status": "success",
  "type": "response",
  "id": 1
}
Request Message
account_nfts WS Request
application/json
List NFTs owned by an account
FieldTypeDescription
command
required
string
WebSocket command name
id
object
Client-supplied identifier to correlate requests with responses.
account
string
The account whose NFTs to list.
ledger_index
object
A ledger index (sequence number) or shortcut string identifying which ledger to use.
ledger_hash
string
256-bit hex hash identifying a specific ledger version.
limit
integer
Maximum number of results to return. Clio servers may return more than this.
marker
object
Opaque pagination marker from a previous response. Pass unchanged to fetch the next page.
api_version
object
API version for the response format. Version 2 is the default for rippled 2.0+.
Example
Json
{
  "command": "account_nfts",
  "id": 1,
  "account": "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn",
  "ledger_index": "validated",
  "limit": 20
}
Response Message
account_nfts WS Response
application/json
WebSocket response for account_nfts
FieldTypeDescription
result
object
status
enum<string>
Available
successerror
type
string
id
stringnumber
Echo of the client-provided correlation ID
Example
Json
{
  "result": {
    "account": "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn",
    "account_nfts": [
      {
        "Flags": 8,
        "Issuer": "rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe",
        "NFTokenID": "00080000B4F4AFC5984A241ACF7DBAF0FA866A7B95C0A4E8166DC5230000001B",
        "NFTokenTaxon": 0,
        "URI": "68747470733A2F2F6578616D706C652E636F6D2F6E6674",
        "nft_serial": 27
      }
    ],
    "ledger_index": 89012345
  },
  "status": "success",
  "type": "response",
  "id": 1
}