eth_createAccessList
Creates an EIP2930 access list from a Transaction object, returning addresses, storage keys used, and the estimated gas consumption with the access list included
Request
Examples
curl --request POST \
--url https://rpc.xone.org \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_createAccessList",
"params": [
{
"to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",
"gas": "0x0",
"gasPrice": "0x9184e72a000",
"value": "0x0",
"data": "0x"
}
]
}
'Response
200 OK
{
"id": 0,
"jsonrpc": "string",
"result": {
"id": 1,
"jsonrpc": "2.0",
"result": "0x5b3c3f3f5cbf12c9c9d79b97c52b8f26a89e55e1"
}
}Request params
| Name | Type | Description |
|---|---|---|
| id | integer | Request identifier |
| jsonrpc | string | JSON-RPC version |
| method | string | API method name |
| Parameters | array | |
| blockNumber | string | (optional) Block number as an integer, or string |
| transaction_detail_flag | boolean | When set to true, the method returns complete transaction objects. If false, it only returns the transaction hashes. |
Response
200
| Name | Type | Description |
|---|---|---|
| Parameters | object | |
| id | integer | |
| jsonrpc | string | |
| result | object | A block object, or null if no block is found, contains the following fields: |