createPlaceBetTxParams
@bidask-protocol/sdk / createPlaceBetTxParams
Function: createPlaceBetTxParams()
createPlaceBetTxParams(
params):TxParams
Defined in: transactions/place-bet.ts:16
Creates a transaction parameters for placing a bet on a specific outcome
Parameters
params
Parameters for the transaction
betEventAddress
Address
Address of the BetEvent contract
gasAmount?
bigint
Optional gas amount for the transaction (defaults to 0.1 TON)
nativeAmount
bigint
Amount of TON to bet (in nanoTON)
outcome
number
The outcome number to bet on
queryId?
bigint
Optional query ID for the transaction (defaults to random)
Returns
Transaction parameters