@alphafi/alphalend-sdk - v1.1.2
    Preparing search index...

    Function getWalletCoins

    • Fetches all coins owned by a wallet address with pagination support

      Parameters

      • userAddress: string

        The Sui address of the wallet owner

      • suiClient: SuiClient

        Instance of SuiClient to interact with the Sui blockchain

      Returns Promise<undefined | Map<string, string>>

      Promise resolving to an array of Coin objects containing coin information

      const walletCoins = await getWalletCoins(
      '0x123...',
      suiClient
      );
      // Returns: Array of Coin objects with coin type and balance information

      This function uses pagination to handle large numbers of coins and logs coin information to the console for debugging purposes