Appearance
eth_getBlockAccessList
not served
Returns the block access list of a block. It comes with the Amsterdam fork.
Not served yet
Cinder does not serve this method. Planned for v1.1. Block-level access lists come with the Amsterdam fork.
When to use
Use it to see which accounts and slots a block reads and writes.
Parameters
| Name | Type | Required | Meaning |
|---|---|---|---|
block | block number in hex, or a tag, see Block parameter | yes | The block. |
Returns
The block access list of the block.
Schema (OpenRPC)
The official specification: eth_getBlockAccessList in ethereum/execution-apis.
Parameter Block: Block number or Block tag or Block hash
json
{
"anyOf": [
{
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "Block number",
"type": "string"
},
{
"description": "`earliest`: The lowest numbered block the client has available; `finalized`: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination; `safe`: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions; `latest`: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions; `pending`: A sample next block built by the client on top of `latest` and containing the set of transactions usually taken from local mempool. Before the merge transition is finalized, any call querying for `finalized` or `safe` block MUST be responded to with `-39001: Unknown block` error",
"enum": [
"earliest",
"finalized",
"safe",
"latest",
"pending"
],
"title": "Block tag",
"type": "string"
},
{
"pattern": "^0x[0-9a-f]{64}$",
"title": "Block hash",
"type": "string"
}
],
"title": "Block number, tag, or block hash"
}Result: Not Found (null) or Block access list
json
{
"oneOf": [
{
"title": "Not Found (null)",
"type": "null"
},
{
"items": {
"additionalProperties": false,
"properties": {
"address": {
"pattern": "^0x[0-9a-fA-F]{40}$",
"title": "hex encoded address",
"type": "string"
},
"balanceChanges": {
"items": {
"additionalProperties": false,
"properties": {
"index": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]{0,7})$",
"title": "hex encoded 32 bit unsigned integer",
"type": "string"
},
"value": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]{0,63})$",
"title": "hex encoded 256 bit unsigned integer",
"type": "string"
}
},
"required": [
"index",
"value"
],
"title": "Balance change",
"type": "object"
},
"type": "array"
},
"codeChanges": {
"items": {
"additionalProperties": false,
"properties": {
"code": {
"pattern": "^0x[0-9a-f]*$",
"title": "hex encoded bytes",
"type": "string"
},
"index": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]{0,7})$",
"title": "hex encoded 32 bit unsigned integer",
"type": "string"
}
},
"required": [
"index",
"code"
],
"title": "Code change",
"type": "object"
},
"type": "array"
},
"nonceChanges": {
"items": {
"additionalProperties": false,
"properties": {
"index": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]{0,7})$",
"title": "hex encoded 32 bit unsigned integer",
"type": "string"
},
"value": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]{0,15})$",
"title": "hex encoded 64 bit unsigned integer",
"type": "string"
}
},
"required": [
"index",
"value"
],
"title": "Nonce change",
"type": "object"
},
"type": "array"
},
"storageChanges": {
"items": {
"additionalProperties": false,
"properties": {
"changes": {
"items": {
"additionalProperties": false,
"properties": {
"index": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]{0,7})$",
"title": "hex encoded 32 bit unsigned integer",
"type": "string"
},
"value": {
"pattern": "^0x[0-9a-f]{64}$",
"title": "32 byte hex value",
"type": "string"
}
},
"required": [
"index",
"value"
],
"title": "Storage change",
"type": "object"
},
"type": "array"
},
"key": {
"pattern": "^0x[0-9a-f]{64}$",
"title": "32 byte hex value",
"type": "string"
}
},
"required": [
"key",
"changes"
],
"title": "Slot changes",
"type": "object"
},
"type": "array"
},
"storageReads": {
"items": {
"pattern": "^0x[0-9a-f]{64}$",
"title": "32 byte hex value",
"type": "string"
},
"type": "array"
}
},
"required": [
"address"
],
"title": "Account access",
"type": "object"
},
"title": "Block access list",
"type": "array"
}
]
}