Function Signature
Description
Retrieves all NFTs owned by the wallet on the specified chain.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
chainId | String | Yes | The chain ID in CAIP-2 format |
Returns
List<PortalNftAsset> - A list of NFT assets.
PortalNftAsset
| Property | Type | Description |
|---|---|---|
tokenId | String? | The NFT token ID |
contractAddress | String? | The NFT contract address |
name | String? | NFT name |
description | String? | NFT description |
imageUrl | String? | NFT image URL |
tokenType | String? | Token type (e.g., “ERC721”, “ERC1155”) |
metadata | PortalNftMetadata? | Additional NFT metadata |
PortalNftMetadata
| Property | Type | Description |
|---|---|---|
name | String? | NFT name from metadata |
description | String? | NFT description from metadata |
image | String? | NFT image URL from metadata |
Example
Errors
| Code | Description |
|---|---|
NOT_INITIALIZED | Portal was not initialized |
FETCH_FAILED | Failed to fetch NFT assets |