---
title: "List NFTs (ERC-721/ERC-1155/ENS/POAP) owned by a wallet"
method: POST
path: "/?ankr_getNFTsByOwner"
tags: ["NFT API"]
---

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

`POST /?ankr_getNFTsByOwner`

## Request

- Base URL: `https://rpc.ankr.com/multichain/569ca1f392f7d3d0bb1073a1173ecb649af1d9249231fe59fa95db19d5ae41fe`
- URL: `https://rpc.ankr.com/multichain/569ca1f392f7d3d0bb1073a1173ecb649af1d9249231fe59fa95db19d5ae41fe/?ankr_getNFTsByOwner`
- Auth: none declared
- TypeScript: <https://skmtc.dev/ankr/apis/ankr-advanced-api/docs/%3Fankr_getNFTsByOwner/post.ts> (a function with typed inputs; its response is checked against the schema)

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).

## Request body

- object
  - `id` integer, required: Client-supplied request ID echoed in the response.
  - `jsonrpc` '2.0', required
  - `method` 'ankr_getNFTsByOwner', required
  - `params` object, required
    - `walletAddress` string, required: Wallet to query. Hex address (`0x…`) or ENS name on Ethereum (e.g. `vitalik.eth`).
    - `blockchain` string[]: Optional. One or more chains to query. Omit for all supported chains.
    - `filter` object[]: Optional. Per-contract filter list.
    - `pageSize` integer: Number of NFTs per page. Default 10, maximum 50.
    - `pageToken` string: Opaque page token from a prior response's `nextPageToken`.

## Response `200`

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.

- object
  - `id` integer, required
  - `jsonrpc` '2.0', required
  - `result` object, required
    - `owner` string, required: Hex address of the wallet. ENS names are resolved to addresses before matching.
    - `nextPageToken` string: Page token for subsequent pages. Empty when no more pages remain.
    - `assets` object[], nullable, required: NFTs owned by the wallet.
      - `blockchain` 'arbitrum' | 'avalanche' | 'base' | 'bsc' | 'eth' | 'fantom' | 'flare' | 'gnosis' | 'linea' | 'optimism' | 'polygon' | 'scroll' | 'somnia_mainnet' | 'taiko' | 'telos' | 'xlayer' | 'avalanche_fuji' | 'base_sepolia' | 'eth_sepolia' | 'optimism_sepolia' | 'polygon_amoy', required
      - `collectionName` string: Collection name.
      - `contractAddress` string: EVM contract address of the NFT.
      - `contractType` string, required: `ERC721`, `ERC1155`, `ENS`, or `POAP`.
      - `imageUrl` string: Pointer to the NFT image. Usually IPFS.
      - `name` string
      - `quantity` string: Token quantity (>1 only for ERC-1155).
      - `symbol` string
      - `tokenId` string, required: On-chain token ID.
      - `tokenUrl` string: URL to the tokenURI (metadata).
      - `traits` object[]: Trait list as declared in the NFT metadata.
        - `trait_type` string
        - `value` string

## Other responses

- `400`: Bad Request — malformed JSON-RPC envelope or invalid `params`. The gateway rejects before the JSON-RPC layer processes the call.
- `401`: Unauthorized — missing or invalid API key in the server URL path. Verify that `{API_KEY}` is set to a valid project key.
- `429`: Too Many Requests — the API key has exceeded its rate or quota limits. Back off and retry; consider upgrading the Premium tier for higher limits.
- `500`: Server error — unexpected condition. Retry with exponential backoff; if it persists, file a ticket at https://www.ankr.com/support/.

---

[API](https://skmtc.dev/ankr/apis/ankr-advanced-api.md) - [All operations](https://skmtc.dev/ankr/apis/ankr-advanced-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ankr/apis/ankr-advanced-api/revisions/77e494aeec1b?raw)
