• 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

    • connection: Connection

      Solana client connection

    • tx: VersionedTransaction | Transaction

      Transaction instance

    • confirmationParams: ConfirmationParams

      Confirmation Params that will be used for execution

      • Optionalcommitment?: Commitment
      • context: Context
      • hash: Readonly
    • throttleParams: ThrottleParams

      rate or throttler instance to throttle TX sending - to not spam the blockchain too much

      • OptionalsendRate?: number
      • OptionalsendThrottler?: PQueue<PriorityQueue, QueueAddOptions>
      • OptionalwaitBeforeConfirming?: number

    Returns Promise<string>