View Source Ethers.Transaction.Eip1559 (Ethers v0.6.3)
Transaction struct and protocol implementation for Ethereum Improvement Proposal (EIP) 1559 transactions. EIP-1559 introduced a new fee market mechanism with base fee and priority fee.
Summary
Types
@type t() :: %Ethers.Transaction.Eip1559{ access_list: [{binary(), [binary()]}], chain_id: non_neg_integer(), gas: non_neg_integer(), input: binary(), max_fee_per_gas: non_neg_integer(), max_priority_fee_per_gas: non_neg_integer(), nonce: non_neg_integer(), to: Ethers.Types.t_address() | nil, value: non_neg_integer() }
A transaction type following EIP-1559 (Type-2) and incorporating the following fields:
chain_id
- chain ID of network where the transaction is to be executednonce
- sequence number for the transaction from this sendermax_priority_fee_per_gas
- maximum fee per gas (in wei) to give to validators as priority fee (introduced in EIP-1559)max_fee_per_gas
- maximum total fee per gas (in wei) willing to pay (introduced in EIP-1559)gas
- maximum amount of gas allowed for transaction executionto
- destination address for transaction, nil for contract creationvalue
- amount of ether (in wei) to transferinput
- data payload of the transactionaccess_list
- list of addresses and storage keys to warm up (introduced in EIP-2930)