SendTxHelper <ReturnFormat, ResolveType, TxType>
Constructors
Type parameters
Parameters
returnFormat: ReturnFormat
Returns SendTxHelper<ReturnFormat, ResolveType, TxType>
Methods
Parameters
Returns Promise<void>
- 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
- emitReceipt(receipt: ResolveType): void
- emitSending(tx: string | TxType): void
- emitSent(tx: string | TxType): void
- emitTransactionHash(hash: string & Uint8Array): void
Parameters
hash: string & Uint8Array
Returns void
Parameters
Returns ResolveType
- handleError(__namedParameters: { error: unknown; tx: TransactionCall }): Promise<unknown>
Parameters
Returns Promise<unknown>
- handleResolve(__namedParameters: { receipt: ResolveType; tx: TransactionCall }): Promise<ResolveType>
Parameters
Returns Promise<ResolveType>
- populateGasPrice(__namedParameters: { transaction: TxType; transactionFormatted: TxType }): Promise<TxType>
Parameters
__namedParameters: { transaction: TxType; transactionFormatted: TxType }
transaction: TxType
transactionFormatted: TxType
Returns Promise<TxType>
- signAndSend(__namedParameters: { tx: TxType; wallet: undefined | Web3BaseWalletAccount }): Promise<string>
Parameters
Returns Promise<string>