The parameters to customize a transaction. If a to address is not provided, it will be assumed that the transaction is a contract creation transaction, and the data field of the transaction will be used as the contract initialization code. gasPrice cannot be used together with maxPriorityFeePerGas and maxFeePerGas.

interface Transaction {
    data?: string;
    from: string;
    gas?: string;
    gasPrice?: string;
    maxFeePerGas?: string;
    maxPriorityFeePerGas?: string;
    to?: string;
    value?: string;
}

Properties

data?: string
from: string
gas?: string
gasPrice?: string
maxFeePerGas?: string
maxPriorityFeePerGas?: string
to?: string
value?: string