Documentation
    Preparing search index...

    Function withdrawCoinPTB

    • Builds a withdraw transaction for a lending pool

      Constructs and adds withdrawal operations to a transaction object. This function supports standard withdrawal and withdrawal using account capability.

      Parameters

      • tx: Transaction

        The transaction builder to append operations to

      • identifier: AssetIdentifier

        Asset identifier for the pool

      • amount: number | TransactionResult

        Amount to withdraw

      • Optionaloptions: Partial<EnvOption & AccountCapOption>

        Optional parameters including environment and account capability

      Returns Promise<TransactionResult>

      Transaction result representing the withdrawn coins