Skip to main content

createTradeAccountDepositTxParams

@bidask-protocol/sdk


@bidask-protocol/sdk / createTradeAccountDepositTxParams

Function: createTradeAccountDepositTxParams()

createTradeAccountDepositTxParams(params): TxParams[]

Internal

Creates a transaction parameters for depositing tokens into a trade account

Parameters

params

Parameters for the transaction

forwardPayload?

Cell

Optional forward payload (triggers deposit notification to owner)

poolAddress

Address

Address of the pool contract

publicKey

Buffer

Public key of the trading account

queryId?

bigint

Optional query ID for the transaction (defaults to random)

seedCell?

Cell

Seed cell of the trading account

senderAddress

Address

Address of the sender

token0Amount

bigint

Amount of token0 to deposit

token0UserWalletAddress

Address

Address of the token0 user wallet

token1Amount

bigint

Amount of token1 to deposit

token1UserWalletAddress

Address

Address of the token1 user wallet (ZERO_ADDRESS if TON)

userAddress

Address

Address of the user

Returns

TxParams[]