diff --git a/src/debug/getters.yaml b/src/debug/getters.yaml index c6f62ab61..a3e225f1d 100644 --- a/src/debug/getters.yaml +++ b/src/debug/getters.yaml @@ -91,6 +91,30 @@ value: - '0xf901a60182c70eb9010000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000002000000000000000000000008000000000000000000000000000000000040000000001000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000100000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000002000000000100000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000020000000000000000f89df89b947753cfad258efbc52a9a1452e42ffbce9be486cbf863a0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa00000000000000000000000000828d0386c1122e565f07dd28c7d1340ed5b3315a000000000000000000000000021849e99c31e3113a489d7eb0fd4d8c0edbe47afa00000000000000000000000000000000000000000000000000000000029b92700' - '0xf901a70183018e1cb9010000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000002000000000000000000000008000000000000000000000000000000000040000000001000000000000000000000000000000000000000000000000010000000000000000000000000000000008000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000002000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000020000000000000000f89df89b947753cfad258efbc52a9a1452e42ffbce9be486cbf863a0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa00000000000000000000000000828d0386c1122e565f07dd28c7d1340ed5b3315a000000000000000000000000069cda9d6cc6ce05982d0b4fdf9480f2991f39b5aa00000000000000000000000000000000000000000000000000000000029b92700' +- name: debug_getRawBlockAccessList + summary: Returns the RLP-encoded EIP-7928 block access list for a given block. + params: + - name: Block + required: true + schema: + $ref: '#/components/schemas/BlockNumberOrTag' + errors: + - code: 4444 + message: Pruned history unavailable + - code: -32001 + message: Resource not found + result: + name: Block access list RLP + schema: + $ref: '#/components/schemas/bytes' + examples: + - name: debug_getRawBlockAccessList example + params: + - name: Block + value: 'latest' + result: + name: Block access list RLP + value: '0xc0' - name: debug_getBadBlocks summary: Returns an array of recent bad blocks that the client has seen on the network. params: [] diff --git a/src/eth/block.yaml b/src/eth/block.yaml index 3ad745e55..e608b9a2e 100644 --- a/src/eth/block.yaml +++ b/src/eth/block.yaml @@ -306,8 +306,8 @@ errors: - code: 4444 message: Pruned history unavailable - - code: 4445 - message: Block access list not available for pre-Amsterdam blocks + - code: -32001 + message: Resource not found examples: - name: eth_getBlockAccessList example params: diff --git a/src/schemas/base-types.yaml b/src/schemas/base-types.yaml index 188912eef..f6c01e2dc 100644 --- a/src/schemas/base-types.yaml +++ b/src/schemas/base-types.yaml @@ -56,6 +56,10 @@ uint: title: hex encoded unsigned integer type: string pattern: ^0x(0|[1-9a-f][0-9a-f]*)$ +uint32: + title: hex encoded 32 bit unsigned integer + type: string + pattern: ^0x(0|[1-9a-f][0-9a-f]{0,7})$ uint64: title: hex encoded 64 bit unsigned integer type: string diff --git a/src/schemas/block-access-list.yaml b/src/schemas/block-access-list.yaml index 4818e9d4b..8b84081ec 100644 --- a/src/schemas/block-access-list.yaml +++ b/src/schemas/block-access-list.yaml @@ -7,7 +7,7 @@ StorageChange: additionalProperties: false properties: index: - $ref: '#/components/schemas/uint64' + $ref: '#/components/schemas/uint32' value: $ref: '#/components/schemas/hash32' SlotChanges: @@ -33,7 +33,7 @@ BalanceChange: additionalProperties: false properties: index: - $ref: '#/components/schemas/uint64' + $ref: '#/components/schemas/uint32' value: $ref: '#/components/schemas/uint256' NonceChange: @@ -45,7 +45,7 @@ NonceChange: additionalProperties: false properties: index: - $ref: '#/components/schemas/uint64' + $ref: '#/components/schemas/uint32' value: $ref: '#/components/schemas/uint64' CodeChange: @@ -57,7 +57,7 @@ CodeChange: additionalProperties: false properties: index: - $ref: '#/components/schemas/uint64' + $ref: '#/components/schemas/uint32' code: $ref: '#/components/schemas/bytes' AccountAccess: diff --git a/src/schemas/block.yaml b/src/schemas/block.yaml index 37c56b7b1..d0df2e3c4 100644 --- a/src/schemas/block.yaml +++ b/src/schemas/block.yaml @@ -110,6 +110,9 @@ Block: requestsHash: title: EIP-7685 requests hash $ref: '#/components/schemas/hash32' + blockAccessListHash: + title: EIP-7928 block access list hash + $ref: '#/components/schemas/hash32' BlockTag: title: Block tag type: string