createTonDammSwapTxParams
@bidask-protocol/sdk / createTonDammSwapTxParams
Function: createTonDammSwapTxParams()
createTonDammSwapTxParams(
params):TxParams
Creates transaction parameters for swapping TON using DAMM
Parameters
params
Parameters for the transaction
additionalData?
Cell
Optional additional data cell
exactOut?
bigint
Exact amount of tokens to receive (defaults to 0)
forwardPayload?
Cell
Optional forward payload for the transaction
nativeAmount
bigint
Amount of TON to swap
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
Transaction parameters