eth_createAccessList
Creates an EIP-2930 access list that you can include in a transaction. This method can help optimize gas costs for complex transactions.
Request#
{
"jsonrpc": "2.0",
"method": "eth_createAccessList",
"params": [
{
"from": "0x...",
"to": "0x...",
"data": "0x..."
},
"latest"
],
"id": 1
}
Parameters#
-
Object- Transaction call object:from(optional): Address the transaction is sent fromto: Address the transaction is directed togas(optional): Integer of gas provided for the transaction executiongasPrice(optional): Integer of gasPrice used for each paid gasvalue(optional): Integer of value sent with this transactiondata(optional): Hash of the method signature and encoded parameters
-
String|Number- Block number, or the string "latest", "earliest" or "pending"
Response#
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"accessList": [
{
"address": "0x...",
"storageKeys": [
"0x..."
]
}
],
"gasUsed": "0x..."
}
}
Response Fields#
accessList: Array of address and storage key objectsgasUsed: Estimated gas used with the access list
Documentation#
For more details, see the Monad JSON-RPC documentation.