eth_createAccessList
Creates an EIP-2930 access list that you can include in a transaction.
Parameters
from: DATA, 20 bytes - (optional) The address the transaction is sent from.
to: DATA, 20 bytes - The address the transaction is directed to.
gas: QUANTITY - (optional) Hexadecimal value of the gas provided for the transaction execution.
gasPrice: QUANTITY - (optional) Hexadecimal value of the gasPrice , in Wei, provided by the sender. The default is 0. used only in non-EIP-1559 transactions.
maxPriorityFeePerGas: QUANTITY - (optional) Hexadecimal of the maximum fee, in Wei, the sender is willing to pay per gas above the base fee. If used, must specify maxFeePerGas .
maxFeePerGas: QUANTITY - (optional) Hexadecimal of the maximum total fee (base fee + priority fee), in Wei, the sender is willing to pay per gas. If used, must specify maxPriorityFeePerGas .
value: QUANTITY - Hexadecimal of the value sent with this transaction.
data: DATA - (optional) Hash of the method signature and encoded parameters. See Ethereum contract ABI specification.
block parameter: QUANTITY|TAG [Required] - Hexadecimal value of the block number, or one of the string tags latest, earliest, safe, or finalized. See the default block parameter.
Returns
Access list object with the following fields:
accessList - A list of objects with the following fields:
address:DATA, 20 bytes - Addresses to be accessed by the transaction.storageKeys:DATA- Storage keys to be accessed by the transaction.
gasUsed: QUANTITY - Hexadecimal string representing the approximate gas cost for the transaction if the access list is included.
Example
Request
Result
Last updated