Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get NFT assets for a chain.
Future<List<PortalNftAsset>> getNftAssets(String chainId)
chainId
String
List<PortalNftAsset>
tokenId
String?
contractAddress
name
description
imageUrl
tokenType
metadata
PortalNftMetadata?
image
import 'package:portal_flutter/portal_flutter.dart'; final portal = Portal(); final nfts = await portal.getNftAssets('eip155:1'); for (final nft in nfts) { print('NFT: ${nft.name ?? nft.metadata?.name}'); print('Token ID: ${nft.tokenId}'); print('Contract: ${nft.contractAddress}'); print('Image: ${nft.imageUrl ?? nft.metadata?.image}'); print('Type: ${nft.tokenType}'); }
NOT_INITIALIZED
FETCH_FAILED
Was this page helpful?