Class RetryTxSender

Hierarchy

  • BaseTxSender
    • RetryTxSender

Constructors

  • Parameters

    • __namedParameters: {
          additionalConnections?: any;
          additionalTxSenderCallbacks?: ((base58EncodedTx: string) => void)[];
          confirmationStrategy?: ConfirmationStrategy;
          connection: Connection;
          landRateToFeeFunc?: ((landRate: number) => number);
          opts?: ConfirmOptions;
          retrySleep?: number;
          timeout?: number;
          trackTxLandRate?: boolean;
          txHandler?: TxHandler;
          txLandRateLookbackWindowMinutes?: number;
          wallet: IWallet;
      }
      • Optional additionalConnections?: any
      • Optional additionalTxSenderCallbacks?: ((base58EncodedTx: string) => void)[]
      • Optional confirmationStrategy?: ConfirmationStrategy
      • connection: Connection
      • Optional landRateToFeeFunc?: ((landRate: number) => number)
          • (landRate: number): number
          • Parameters

            • landRate: number

            Returns number

      • Optional opts?: ConfirmOptions
      • Optional retrySleep?: number
      • Optional timeout?: number
      • Optional trackTxLandRate?: boolean
      • Optional txHandler?: TxHandler
      • Optional txLandRateLookbackWindowMinutes?: number
      • wallet: IWallet

    Returns RetryTxSender

Properties

additionalConnections: Connection[]
additionalTxSenderCallbacks: ((base58EncodedTx: string) => void)[]
confirmationStrategy: ConfirmationStrategy
connection: Connection
landRateToFeeFunc: ((landRate: number) => number)

Type declaration

    • (landRate: number): number
    • Parameters

      • landRate: number

      Returns number

lastPriorityFeeSuggestion: number = 1
lookbackWindowMinutes: number
opts: ConfirmOptions
retrySleep: number
timeout: number
timeoutCount: number = 0
timoutCount: number = 0
trackTxLandRate?: boolean
txHandler: TxHandler
txLandRate: number = 0
txSigCache?: NodeCache
wallet: IWallet

Methods

  • Parameters

    • newConnection: Connection

    Returns void

  • Parameters

    • txSig: string
    • result: SignatureResult

    Returns Promise<void>

  • Parameters

    • signature: string
    • Optional commitment: Commitment

    Returns Promise<RpcResponseAndContext<SignatureResult>>

  • Parameters

    • signature: string
    • commitment: Commitment = 'finalized'

    Returns Promise<RpcResponseAndContext<SignatureResult>>

  • Parameters

    • signature: string
    • Optional commitment: Commitment

    Returns Promise<RpcResponseAndContext<SignatureResult>>

  • Returns number

  • Parameters

    • ixs: TransactionInstruction[]
    • lookupTableAccounts: AddressLookupTableAccount[]
    • Optional _additionalSigners: Signer[]
    • Optional opts: ConfirmOptions
    • Optional blockhash: Readonly<{
          blockhash: string;
          lastValidBlockHeight: number;
      }>

    Returns Promise<VersionedTransaction>

  • Parameters

    • tx: Transaction
    • additionalSigners: Signer[]
    • opts: ConfirmOptions
    • Optional preSigned: boolean

    Returns Promise<Transaction>

  • Type Parameters

    • T

    Parameters

    • promises: Promise<T>[]
    • timeoutMs: number

    Returns Promise<T>

  • Parameters

    • tx: Transaction
    • Optional additionalSigners: Signer[]
    • Optional opts: ConfirmOptions
    • Optional preSigned: boolean

    Returns Promise<TxSigAndSlot>

  • Parameters

    • rawTransaction: Uint8Array | Buffer
    • opts: ConfirmOptions

    Returns Promise<TxSigAndSlot>

  • Parameters

    • rawTx: Uint8Array | Buffer
    • opts: ConfirmOptions

    Returns void

  • Parameters

    • tx: VersionedTransaction
    • Optional additionalSigners: Signer[]
    • Optional opts: ConfirmOptions
    • Optional preSigned: boolean

    Returns Promise<TxSigAndSlot>

  • Parameters

    • tx: VersionedTransaction

    Returns Promise<boolean>

  • Parameters

    • reference: ResolveReference

    Returns Promise<void>

Generated using TypeDoc