NFT API

List NFTs (ERC-721/ERC-1155/ENS/POAP) owned by a wallet

Returns the NFTs owned by a wallet across one or more supported chains, with collection metadata, token IDs, image URLs, traits, and pagination cursors. Supports ERC-721, ERC-1155, ENS, and POAP.

Pass walletAddress (hex address, or ENS name on Ethereum). Scope to specific chains with the blockchain array, or omit it for all supported chains. Narrow results with the filter argument: each entry maps a contract address to an array of token IDs (empty array = all NFTs from that contract).

Pagination via pageSize (max 50, default 10) and pageToken. Part of the NFT API product (700 compute units per call, $0.00007 at base rate).

post/?ankr_getNFTsByOwner

Request

Request body

idinteger required

Client-supplied request ID echoed in the response.

jsonrpc'2.0' required
method'ankr_getNFTsByOwner' required

Example request

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "ankr_getNFTsByOwner",
  "params": {
    "walletAddress": "vitalik.eth"
  }
}

Response

Success. JSON-RPC result envelope contains the NFT asset list, the queried owner, and a pagination cursor. JSON-RPC errors are returned with HTTP 200; check the response body for an error key.

idinteger required
jsonrpc'2.0' required

Changes

No recorded changes to this operation across all 1 revision of this API.