Skip to main content

createJettonDammSwapTxParams

@bidask-protocol/sdk


@bidask-protocol/sdk / createJettonDammSwapTxParams

Function: createJettonDammSwapTxParams()

createJettonDammSwapTxParams(params): TxParams

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)

forwardAmount?

bigint

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

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

Returns

TxParams

Transaction parameters