Skip to main content
POST
eth_createAccessList
curl --request POST \
  --url https://tempo-mainnet.core.chainstack.com/c3ce2925b51f1ed18719fe8a23bbdccf/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "method": "eth_createAccessList",
  "params": [
    {
      "to": "0x20c0000000000000000000000000000000000000",
      "data": "0x95d89b41"
    },
    "latest"
  ],
  "id": 1
}
'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": "<unknown>"
}
Tempo API method that creates an EIP-2930 access list for a transaction. The access list identifies storage slots and addresses the transaction will access, which can be used to optimize gas costs.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • transactionObject — the transaction call object:
    • from — (optional) sender address
    • to — recipient address
    • gas — (optional) gas limit
    • gasPrice — (optional) gas price
    • value — (optional) value to send
    • data — (optional) call data
  • blockParameter — the block number (hex) or tag (latest, earliest, pending)

Response

  • result — an object containing:
    • accessList — an array of access list entries (address and storage keys)
    • gasUsed — the gas used by the transaction with the access list applied

eth_createAccessList code examples

curl -X POST "CHAINSTACK_NODE_URL" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "method": "eth_createAccessList", "params": [{"to": "0x20c0000000000000000000000000000000000000", "data": "0x95d89b41"}, "latest"], "id": 1}'

Body

application/json
jsonrpc
string
default:2.0
method
string
default:eth_createAccessList
params
any[]

Method parameters

id
integer
default:1

Response

200 - application/json

Successful response

jsonrpc
string
id
integer
result
any

Method result

Last modified on March 19, 2026