Skip to main content

createJettonDammSwapTxParams

@bidask-protocol/sdk


@bidask-protocol/sdk / createJettonDammSwapTxParams

Function: createJettonDammSwapTxParams()

createJettonDammSwapTxParams(params): TxParams

Defined in: transactions/jetton-damm-swap.ts:25

Creates transaction parameters for swapping tokens using a Jetton wallet (DAMM)

Parameters​

params​

Parameters for the transaction

amountIn​

bigint

Amount of jettons to swap

exactOut?​

bigint

Exact amount of tokens to receive (defaults to 0)

forwardPayload?​

Cell

Optional forward payload for the transaction

jettonWalletAddress​

Address

Address of the sender's jetton wallet

poolAddress​

Address

Address of the liquidity pool

queryId?​

bigint

Optional query ID for the transaction (defaults to random)

receiverAddress​

Address

Address of the swap result receiver

refAddress?​

Address

Optional referral address

rejectPayload?​

Cell

Optional reject payload for the transaction

senderAddress​

Address

Address of the swap sender/refund address

slippage​

bigint

Maximum slippage amount in coins

swapGasAmount?​

bigint

Optional swap gas amount for the Jetton transfer (defaults to 0.5 TON)

Returns​

TxParams

Transaction parameters