sendTx
Callable
Parameters
params: { chain?: blockchain; delay?: number; description?: string; retry?: number; tx: any; verbose?: boolean; wait?: boolean }
The parameters object
optionalchain: blockchain
The blockchain to send the transaction on
optionaldelay: number
optionaldescription: string
A description of the transaction
optionalretry: number
tx: any
The transaction to send
optionalverbose: boolean
Whether to log verbose information
optionalwait: boolean
Whether to wait for the transaction to be included in a block
Returns Promise<Mina.IncludedTransaction | Mina.PendingTransaction | Mina.RejectedTransaction | undefined>
The
sendTx
function returns aMina.IncludedTransaction
,Mina.PendingTransaction
,Mina.RejectedTransaction
, orundefined
if there was an error during the process.
The function
sendTx
sends a transaction, checks account updates, and waits for confirmation on the blockchain.