Skip to main content

SendTxHelper <ReturnFormat, ResolveType, TxType>

Index

Constructors

publicconstructor

Methods

publiccheckRevertBeforeSending

publicemitConfirmation

  • emitConfirmation(__namedParameters: { customTransactionReceiptSchema?: Schema; receipt: ResolveType; transactionHash: string }): void
  • Parameters

    • __namedParameters: { customTransactionReceiptSchema?: Schema; receipt: ResolveType; transactionHash: string }
      • optionalcustomTransactionReceiptSchema: Schema
      • receipt: ResolveType
      • transactionHash: string

    Returns void

publicemitReceipt

  • emitReceipt(receipt: ResolveType): void
  • Parameters

    • receipt: ResolveType

    Returns void

publicemitSending

  • emitSending(tx: string | TxType): void
  • Parameters

    • tx: string | TxType

    Returns void

publicemitSent

  • emitSent(tx: string | TxType): void
  • Parameters

    • tx: string | TxType

    Returns void

publicemitTransactionHash

  • emitTransactionHash(hash: string & Uint8Array): void
  • Parameters

    • hash: string & Uint8Array

    Returns void

publicgetReceiptWithEvents

publichandleError

  • handleError(__namedParameters: { error: unknown; tx: TransactionCall }): Promise<unknown>

publichandleResolve

  • handleResolve(__namedParameters: { receipt: ResolveType; tx: TransactionCall }): Promise<ResolveType>

publicpopulateGasPrice

  • populateGasPrice(__namedParameters: { transaction: TxType; transactionFormatted: TxType }): Promise<TxType>
  • Parameters

    • __namedParameters: { transaction: TxType; transactionFormatted: TxType }
      • transaction: TxType
      • transactionFormatted: TxType

    Returns Promise<TxType>

publicsignAndSend

  • signAndSend(__namedParameters: { tx: TxType; wallet: undefined | Web3BaseWalletAccount }): Promise<string>