Required params to handle swap transfer (different tokens on the same chain)

interface SwapParams {
    amount: string;
    destinationToken: TokenWithChainDetails;
    fromAccountAddress: string;
    minimumReceiveAmount?: string;
    sourceToken: TokenWithChainDetails;
    toAccountAddress: string;
    txFeeParams?: TxFeeParams;
}

Hierarchy (View Summary)

Properties

amount: string

The float amount of Total tokens to transfer.

In Send case If SendParams#gasFeePaymentMethod is FeePaymentMethod#WITH_STABLECOIN:
Includes gas fee
Includes extra gas

destinationToken: TokenWithChainDetails

The token info object on the destination chain.

fromAccountAddress: string

The account address to transfer tokens from.

minimumReceiveAmount?: string

minimum amount to receive including possible slippage, see AllbridgeCoreSdk#getAmountToBeReceived

The token info object on the source chain.

toAccountAddress: string

The account address to transfer tokens to.

txFeeParams?: TxFeeParams