portal.getClient

Gets all of the Portal client’s relevant details, such as their wallet addresses, their signing share pairs’ statuses, their backup share pairs’ statuses, and more.
const portalClient = await portal.getClient()

portal.getAssets

Fetches a list of non-fungible tokens (NFTs). The response is an array of objects where each object represents a unique NFT.
const assets = portal.getAssets(
  'solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1', // CAIP-2 chain ID
  false // (optional) include NFTs
)

portal.buildTransaction

Creates an unsigned eip155/solana transaction for transferring assets to another address on a specific chain. You can then use this unsigned eip155/solana transaction to sign and submit the eip155/solana transaction.
const txDetails = await portal.buildTransaction(
  'sepolia', // Friendly chain or CAIP-2 chainId
  '0xDestinationAddress',
  'USDC', // Friendly token name, or token address (mint address for Solana)
  '1', // Sends 1 USDC
)

Looking for more functionality? Explore our other Client API endpoints here.