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>"
}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>"
}transactionObject — the transaction call object:
from — (optional) sender addressto — recipient addressgas — (optional) gas limitgasPrice — (optional) gas pricevalue — (optional) value to senddata — (optional) call datablockParameter — the block number (hex) or tag (latest, earliest, pending)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 appliedeth_createAccessList code examplescurl -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}'
Was this page helpful?