Documentation
    Preparing search index...
    • Gets coin objects for transaction building

      This function retrieves and prepares coin objects for use in swap transactions. It handles both SUI gas coins and other token types, including coin merging when necessary.

      Parameters

      • address: string

        Wallet address

      • coin: string

        Coin type or address

      • amountIn: string | number | bigint

        Amount needed for the transaction

      • txb: Transaction

        Transaction object to build

      • client: SuiClient

        Sui client instance

      Returns Promise<TransactionResult>

      Transaction result representing the prepared coin