Options for sending a method transaction

interface MethodTransactionOptions {
    chainId?: QuantityLike;
    gasLimit?: QuantityLike;
    gasPrice?: QuantityLike;
    isFeeMarket?: boolean;
    logFunction?: ((msg) => void);
    maxFeePerGas?: QuantityLike;
    maxPriorityFeePerGas?: QuantityLike;
    nonce?: QuantityLike;
    privateKey: BytesLike;
    receiptWaitTimeout?: number;
}

Properties

chainId?: QuantityLike

Chain ID

gasLimit?: QuantityLike

Gas limit, by default it used the estimated gas

gasPrice?: QuantityLike

Gas price, by default it used the recommended gas price

isFeeMarket?: boolean

Fee market transaction? (to use fee instead of gas price) True by default

logFunction?: ((msg) => void)

Type declaration

    • (msg): void
    • Log Function to receive progress messages

      Parameters

      • msg: string

      Returns void

maxFeePerGas?: QuantityLike

The maximum total fee

maxPriorityFeePerGas?: QuantityLike

The maximum inclusion fee per gas (this fee is given to the miner)

nonce?: QuantityLike

Transaction nonce. If not provided:

  • The transactions count is used.
  • In case of collision, the transaction will be retried with a new nonce.
privateKey: BytesLike

Private key to sign the transaction

receiptWaitTimeout?: number

Timeout in milliseconds to wait for the transaction receipt. Set to 0 for no timeout. By default no timeout.

Generated using TypeDoc