sendAndConfirmTransaction()
sendAndConfirmTransaction()
function sendAndConfirmTransaction(
connection,
tx,
confirmationParams,
throttleParams): Promise<string>;Defined in: utils.ts:281
Sends and confirm transaction in a loop, constantly re-broadcsting the tx until Blockheight expires.
- we add additional 30 bocks to account for validators in an PRC pool divergence
Parameters
| Parameter | Type | Description |
|---|---|---|
connection | Connection | Solana client connection |
tx | VersionedTransaction | Transaction | Transaction instance |
confirmationParams | ConfirmationParams | Confirmation Params that will be used for execution |
throttleParams | ThrottleParams | rate or throttler instance to throttle TX sending - to not spam the blockchain too much |
Returns
Promise<string>