Skip to main content
Function Signature
Parameters
  • chainId: The chain identifier in CAIP-2 format (e.g., “eip155:1” for Ethereum mainnet, “solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp” for Solana mainnet)
Returns An AssetsResponse object containing:
  • nativeBalance: Native token balance information (e.g., ETH for Ethereum)
    • balance: Current balance as string
    • decimals: Number of decimal places
    • name: Token name
    • symbol: Token symbol
    • rawBalance: Raw balance value
    • metadata: Contains token logo and thumbnail URLs
  • tokenBalances: Array of ERC20 token balances, each containing:
    • balance: Current balance as string
    • decimals: Number of decimal places
    • name: Token name
    • symbol: Token symbol
    • rawBalance: Raw balance value
    • metadata: Additional token information including:
      • tokenAddress: Contract address
      • verifiedContract: Contract verification status
      • totalSupply: Total token supply
      • percentageRelativeToTotalSupply: Holder’s percentage of total supply
  • nfts: Array of NFT assets, each containing:
    • nftID: Unique identifier
    • name: NFT name
    • description: NFT description
    • imageURL: NFT image URL
    • chainID: Blockchain identifier
    • contractAddress: NFT contract address
    • tokenID: Token identifier
    • collection: Collection information
    • lastSale: Last sale information (price, currency, date)
    • rarity: Rarity information (rank and score)
    • floorPrice: Current floor price information
    • detailedInfo: Extended NFT information including:
      • Ownership details
      • Collection statistics
      • Marketplace information
      • Media previews and metadata
Example Usage
Implementation Notes
  • All balance fields are optional and should be safely unwrapped
  • Token balances are returned as strings to maintain precision
  • NFT data includes extensive metadata useful for marketplace integration