RPCCreateAccessList class

This method creates an EIP2930 type accessList based on a given Transaction. The accessList contains all storage slots and addresses read and written by the transaction, except for the sender account and the precompiles. This method uses the same transaction call object and blockNumberOrTag object as eth_call. An accessList can be used to unstuck contracts that became inaccessible due to gas cost increases. geth.ethereum.org

Inheritance

Constructors

RPCCreateAccessList({required Map<String, dynamic> transaction, BlockTagOrNumber? blockNumber = BlockTagOrNumber.pending})

Properties

blockNumber BlockTagOrNumber?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
method EthereumMethods
eth_createAccessList
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transaction Map<String, dynamic>
TransactionCall object
final
validate String?
A validation property (not used in this implementation).
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onResonse(dynamic result) → Tuple<List<AccessListEntry>, BigInt>
The method eth_createAccessList returns list of addresses and storage keys used by the transaction, plus the gas consumed when the access list is added.
override
toJson() List
Converts the request parameters to a JSON representation.
override
toRequest(int requestId) ETHRequestDetails
Converts the request parameters to a ETHRequestDetails object.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited