Generates an access list for a transaction to optimize gas usage.
eth_createAccessList JSON-RPC method generates an access list for a transaction. This method simulates a transaction execution to determine which storage slots and addresses will be accessed, enabling more efficient gas usage through EIP-2930 access lists.
from (string, optional) — The address the transaction is sent fromto (string, required) — The address the transaction is directed togas (string, optional) — The gas provided for the transaction executiongasPrice (string, optional) — The gas price for the transactionvalue (string, optional) — The value sent with this transactiondata (string, optional) — The data sent along with the transactionmaxFeePerGas (string, optional) — Maximum fee per gas for EIP-1559 transactionsmaxPriorityFeePerGas (string, optional) — Maximum priority fee per gas for EIP-1559 transactionsblock (string, required) — Block identifier: "latest" (only the latest block is supported on Hyperliquid)accessList — Array of access list entries
address — The accessed contract addressstorageKeys — Array of accessed storage keys for this addressgasUsed — The estimated gas used by the transaction with the access listerror — Error message if the transaction would faileth_createAccessList method is essential for applications that need to: