Skip to content

Commit 5cac77b

Browse files
authored
Merge branch 'main' into unify-requests-flat
2 parents b62e8a8 + a3583d5 commit 5cac77b

24 files changed

+681
-50
lines changed

graphql.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -473,22 +473,6 @@
473473
"isDeprecated": false,
474474
"deprecationReason": null
475475
},
476-
{
477-
"name": "totalDifficulty",
478-
"description": "TotalDifficulty is the sum of all difficulty values up to and including\nthis block.",
479-
"args": [],
480-
"type": {
481-
"kind": "NON_NULL",
482-
"name": null,
483-
"ofType": {
484-
"kind": "SCALAR",
485-
"name": "BigInt",
486-
"ofType": null
487-
}
488-
},
489-
"isDeprecated": false,
490-
"deprecationReason": null
491-
},
492476
{
493477
"name": "ommerCount",
494478
"description": "OmmerCount is the number of ommers (AKA uncles) associated with this\nblock. If ommers are unavailable, this field will be null.",

schema.graphqls

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,6 @@ type Block {
122122
"""Difficulty is a measure of the difficulty of mining this block."""
123123
difficulty: BigInt!
124124

125-
"""
126-
TotalDifficulty is the sum of all difficulty values up to and including
127-
this block.
128-
"""
129-
totalDifficulty: BigInt!
130-
131125
"""
132126
OmmerCount is the number of ommers (AKA uncles) associated with this
133127
block. If ommers are unavailable, this field will be null.

src/debug/getters.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@
108108
receiptsRoot: '0xccd2d33763dc0ac3fe02d4ecbbcd7d2bdc6f57db635ba31007184679303721d7'
109109
miner: '0x0000000000000000000000000000000000000000'
110110
difficulty: '0x1'
111-
totalDifficulty: '0x1'
112111
extraData: '0x00000000000000000000000000000000000000000000000000000000000000008c6a091f07e4ba3930f2f5fabbfc5b1c70986319096760ba200a6abc0d30e33c2d501702d1b58d7f75807bdbf981044557628611319121170b96466ec06bb3fd01'
113112
size: '0x3a0'
114113
gasLimit: '0xffffffffffff'
@@ -145,7 +144,6 @@
145144
receiptsRoot: '0x2b5c77f6e7764d2468178fab7253346b9b8bb6a34b63946f6bdc2f5ad398bfc3'
146145
miner: '0x0000000000000000000000000000000000000000'
147146
difficulty: '0x2'
148-
totalDifficulty: '0x2'
149147
extraData: '0x00000000000000000000000000000000000000000000000000000000000000004d04551bdd9ae08af1fd661e49d4ab662c98c532c7ec0e4656a27e4de7d330af578ab1e4f5e49e085ff1d78673c7388ed9ccf017fbe89e53066bfa4018142c0701'
150148
size: '0x3a0'
151149
gasLimit: '0xffffffffffff'

src/engine/common.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Execution layer clients **MUST** support `engine_exchangeCapabilities` method, w
161161

162162
#### Specification
163163

164-
1. Consensus and execution layer client software **MAY** exchange with a list of currently supported Engine API methods. Execution layer client software **MUST NOT** log any error messages if this method has either never been called or haven't been called for a significant amount of time.
164+
1. Consensus and execution layer client software **MAY** exchange with a list of currently supported Engine API methods. Execution layer client software **MUST NOT** log any error messages if this method has either never been called or hasn't been called for a significant amount of time.
165165

166166
2. Request and response lists **MUST** contain Engine API methods that are currently supported by consensus and execution client software respectively. Name of each method in both lists **MUST** include suffixed version. Consider the following examples:
167167
* Client software of both layers currently supports `V1` and `V2` versions of `engine_newPayload` method:

src/engine/paris.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ The payload build process is specified as follows:
222222

223223
1. Verify that `payloadAttributes.timestamp` is greater than `timestamp` of a block referenced by `forkchoiceState.headBlockHash` and return `-38003: Invalid payload attributes` on failure.
224224

225-
2. If `payloadAttributes` passes all valdiation steps, begin a payload build process building on top of `forkchoiceState.headBlockHash` and identified via `buildProcessId` value. The build process is specified in the [Payload building](#payload-building) section.
225+
2. If `payloadAttributes` passes all validation steps, begin a payload build process building on top of `forkchoiceState.headBlockHash` and identified via `buildProcessId` value. The build process is specified in the [Payload building](#payload-building) section.
226226

227227
3. If `payloadAttributes` validation fails, the `forkchoiceState` update **MUST NOT** be rolled back.
228228

@@ -235,7 +235,7 @@ The payload build process is specified as follows:
235235
* `{error: {code: -38002, message: "Invalid forkchoice state"}}` if `forkchoiceState` is either invalid or inconsistent
236236
* `{error: {code: -38003, message: "Invalid payload attributes"}}` if the payload is deemed `VALID` and `forkchoiceState` has been applied successfully, but no build process has been started due to invalid `payloadAttributes`.
237237

238-
10. If any of the above fails due to errors unrelated to the normal processing flow of the method, client software **MUST** respond with an error object.
238+
9. If any of the above fails due to errors unrelated to the normal processing flow of the method, client software **MUST** respond with an error object.
239239

240240
### engine_getPayloadV1
241241

src/engine/prague.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ The response of this method is updated with [`ExecutionPayloadBodyV2`](#executio
148148
* method: `engine_getPayloadBodiesByRangeV2`
149149
* params:
150150
1. `start`: `QUANTITY`, 64 bits - Starting block number
151-
1. `count`: `QUANITTY`, 64 bits - Number of blocks to return
151+
1. `count`: `QUANTITY`, 64 bits - Number of blocks to return
152152
* timeout: 10s
153153

154154
#### Response

src/engine/shanghai.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ This method follows the same specification as [`engine_getPayloadV1`](./paris.md
202202
* method: `engine_getPayloadBodiesByRangeV1`
203203
* params:
204204
1. `start`: `QUANTITY`, 64 bits - Starting block number
205-
1. `count`: `QUANITTY`, 64 bits - Number of blocks to return
205+
1. `count`: `QUANTITY`, 64 bits - Number of blocks to return
206206
* timeout: 10s
207207

208208
#### Response

src/eth/block.yaml

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,48 @@
1616
oneOf:
1717
- $ref: '#/components/schemas/notFound'
1818
- $ref: '#/components/schemas/Block'
19+
examples:
20+
- name: eth_getBlockByHash example
21+
params:
22+
- name: Block hash
23+
value: '0xd5f1812548be429cbdc6376b29611fc49e06f1359758c4ceaaa3b393e2239f9c'
24+
- name: Hydrated transactions
25+
value: false
26+
result:
27+
name: Block information
28+
value:
29+
number: '0x68b3'
30+
hash: '0xd5f1812548be429cbdc6376b29611fc49e06f1359758c4ceaaa3b393e2239f9c'
31+
mixHash: '0x24900fb3da77674a861c428429dce0762707ecb6052325bbd9b3c64e74b5af9d'
32+
parentHash: '0x1f68ac259155e2f38211ddad0f0a15394d55417b185a93923e2abe71bb7a4d6d'
33+
nonce: '0x378da40ff335b070'
34+
sha3Uncles: '0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347'
35+
logsBloom: '0x00000000000000100000004080000000000500000000000000020000100000000800001000000004000001000000000000000800040010000020100000000400000010000000000000000040000000000000040000000000000000000000000000000400002400000000000000000000000000000004000004000000000000840000000800000080010004000000001000000800000000000000000000000000000000000800000000000040000000020000000000000000000800000400000000000000000000000600000400000000002000000000000000000000004000000000000000100000000000000000000000000000000000040000900010000000'
36+
transactionsRoot: '0x4d0c8e91e16bdff538c03211c5c73632ed054d00a7e210c0eb25146c20048126'
37+
stateRoot: '0x91309efa7e42c1f137f31fe9edbe88ae087e6620d0d59031324da3e2f4f93233'
38+
receiptsRoot: '0x68461ab700003503a305083630a8fb8d14927238f0bc8b6b3d246c0c64f21f4a'
39+
miner: '0xb42b6c4a95406c78ff892d270ad20b22642e102d'
40+
difficulty: '0x66e619a'
41+
totalDifficulty: '0x1e875d746ae'
42+
extraData: '0xd583010502846765746885676f312e37856c696e7578'
43+
size: '0x334'
44+
gasLimit: '0x47e7c4'
45+
gasUsed: '0x37993'
46+
timestamp: '0x5835c54d'
47+
uncles: []
48+
transactions:
49+
- '0xa0807e117a8dd124ab949f460f08c36c72b710188f01609595223b325e58e0fc'
50+
- '0xeae6d797af50cb62a596ec3939114d63967c374fa57de9bc0f4e2b576ed6639d'
51+
baseFeePerGas: '0x7'
52+
withdrawalsRoot: '0x7a4ecf19774d15cf9c15adf0dd8e8a250c128b26c9e2ab2a08d6c9c8ffbd104f'
53+
withdrawals:
54+
- index: '0x0'
55+
validatorIndex: '0x9d8c0'
56+
address: '0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f'
57+
amount: '0x11a33e3760'
58+
blobGasUsed: '0x0'
59+
excessBlobGas: '0x0'
60+
parentBeaconBlockRoot: '0x95c4dbd5b19f6fe3cbc3183be85ff4e85ebe75c5b4fc911f1c91e5b7a554a685'
1961
- name: eth_getBlockByNumber
2062
summary: Returns information about a block by number.
2163
params:
@@ -34,6 +76,48 @@
3476
oneOf:
3577
- $ref: '#/components/schemas/notFound'
3678
- $ref: '#/components/schemas/Block'
79+
examples:
80+
- name: eth_getBlockByNumber example
81+
params:
82+
- name: block
83+
value: '0x68B3'
84+
- name: Hydrated transactions
85+
value: false
86+
result:
87+
name: Block information
88+
value:
89+
number: '0x68b3'
90+
hash: '0xd5f1812548be429cbdc6376b29611fc49e06f1359758c4ceaaa3b393e2239f9c'
91+
mixHash: '0x24900fb3da77674a861c428429dce0762707ecb6052325bbd9b3c64e74b5af9d'
92+
parentHash: '0x1f68ac259155e2f38211ddad0f0a15394d55417b185a93923e2abe71bb7a4d6d'
93+
nonce: '0x378da40ff335b070'
94+
sha3Uncles: '0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347'
95+
logsBloom: '0x00000000000000100000004080000000000500000000000000020000100000000800001000000004000001000000000000000800040010000020100000000400000010000000000000000040000000000000040000000000000000000000000000000400002400000000000000000000000000000004000004000000000000840000000800000080010004000000001000000800000000000000000000000000000000000800000000000040000000020000000000000000000800000400000000000000000000000600000400000000002000000000000000000000004000000000000000100000000000000000000000000000000000040000900010000000'
96+
transactionsRoot: '0x4d0c8e91e16bdff538c03211c5c73632ed054d00a7e210c0eb25146c20048126'
97+
stateRoot: '0x91309efa7e42c1f137f31fe9edbe88ae087e6620d0d59031324da3e2f4f93233'
98+
receiptsRoot: '0x68461ab700003503a305083630a8fb8d14927238f0bc8b6b3d246c0c64f21f4a'
99+
miner: '0xb42b6c4a95406c78ff892d270ad20b22642e102d'
100+
difficulty: '0x66e619a'
101+
totalDifficulty: '0x1e875d746ae'
102+
extraData: '0xd583010502846765746885676f312e37856c696e7578'
103+
size: '0x334'
104+
gasLimit: '0x47e7c4'
105+
gasUsed: '0x37993'
106+
timestamp: '0x5835c54d'
107+
uncles: [ ]
108+
transactions:
109+
- '0xa0807e117a8dd124ab949f460f08c36c72b710188f01609595223b325e58e0fc'
110+
- '0xeae6d797af50cb62a596ec3939114d63967c374fa57de9bc0f4e2b576ed6639d'
111+
baseFeePerGas: '0x7'
112+
withdrawalsRoot: '0x7a4ecf19774d15cf9c15adf0dd8e8a250c128b26c9e2ab2a08d6c9c8ffbd104f'
113+
withdrawals:
114+
- index: '0x0'
115+
validatorIndex: '0x9d8c0'
116+
address: '0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f'
117+
amount: '0x11a33e3760'
118+
blobGasUsed: '0x0'
119+
excessBlobGas: '0x0'
120+
parentBeaconBlockRoot: '0x95c4dbd5b19f6fe3cbc3183be85ff4e85ebe75c5b4fc911f1c91e5b7a554a685'
37121
- name: eth_getBlockTransactionCountByHash
38122
summary: Returns the number of transactions in a block from a block matching the given block hash.
39123
params:
@@ -47,6 +131,14 @@
47131
- $ref: '#/components/schemas/notFound'
48132
- title: Transaction count
49133
$ref: '#/components/schemas/uint'
134+
examples:
135+
- name: eth_getBlockTransactionCountByHash example
136+
params:
137+
- name: Block hash
138+
value: '0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238'
139+
result:
140+
name: Transaction count
141+
value: '0x8'
50142
- name: eth_getBlockTransactionCountByNumber
51143
summary: Returns the number of transactions in a block matching the given block number.
52144
params:
@@ -60,6 +152,14 @@
60152
- $ref: '#/components/schemas/notFound'
61153
- title: Transaction count
62154
$ref: '#/components/schemas/uint'
155+
examples:
156+
- name: eth_getBlockTransactionCountByNumber example
157+
params:
158+
- name: Block
159+
value: '0xe8'
160+
result:
161+
name: Transaction count
162+
value: '0x8'
63163
- name: eth_getUncleCountByBlockHash
64164
summary: Returns the number of uncles in a block from a block matching the given block hash.
65165
params:
@@ -73,6 +173,14 @@
73173
- $ref: '#/components/schemas/notFound'
74174
- title: Uncle count
75175
$ref: '#/components/schemas/uint'
176+
examples:
177+
- name: eth_getUncleCountByBlockHash example
178+
params:
179+
- name: Block hash
180+
value: '0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35'
181+
result:
182+
name: Uncle count
183+
value: '0x1'
76184
- name: eth_getUncleCountByBlockNumber
77185
summary: Returns the number of transactions in a block matching the given block number.
78186
params:
@@ -86,6 +194,14 @@
86194
- $ref: '#/components/schemas/notFound'
87195
- title: Uncle count
88196
$ref: '#/components/schemas/uint'
197+
examples:
198+
- name: eth_getUncleCountByBlockNumber example
199+
params:
200+
- name: Block
201+
value: '0xe8'
202+
result:
203+
name: Uncle count
204+
value: '0x1'
89205
- name: eth_getBlockReceipts
90206
summary: Returns the receipts of a block by number or hash.
91207
params:
@@ -102,3 +218,56 @@
102218
type: array
103219
items:
104220
$ref: '#/components/schemas/ReceiptInfo'
221+
examples:
222+
- name: eth_getBlockReceipts example
223+
params:
224+
- name: Block
225+
value: 'latest'
226+
result:
227+
name: Receipts information
228+
value:
229+
- blockHash: '0x19514ce955c65e4dd2cd41f435a75a46a08535b8fc16bc660f8092b32590b182'
230+
blockNumber: '0x6f55'
231+
contractAddress: null
232+
cumulativeGasUsed: '0x18c36'
233+
from: '0x22896bfc68814bfd855b1a167255ee497006e730'
234+
gasUsed: '0x18c36'
235+
blobGasUsed: '0x20000'
236+
effectiveGasPrice: '0x9502f907'
237+
blobGasPrice: '0x32'
238+
logs:
239+
- address: '0xfd584430cafa2f451b4e2ebcf3986a21fff04350'
240+
topics:
241+
- '0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d'
242+
- '0x4be29e0e4eb91f98f709d98803cba271592782e293b84a625e025cbb40197ba8'
243+
- '0x000000000000000000000000835281a2563db4ebf1b626172e085dc406bfc7d2'
244+
- '0x00000000000000000000000022896bfc68814bfd855b1a167255ee497006e730'
245+
data: '0x'
246+
blockNumber: '0x6f55'
247+
transactionHash: '0x4a481e4649da999d92db0585c36cba94c18a33747e95dc235330e6c737c6f975'
248+
transactionIndex: '0x0'
249+
blockHash: '0x19514ce955c65e4dd2cd41f435a75a46a08535b8fc16bc660f8092b32590b182'
250+
logIndex: '0x0'
251+
removed: false
252+
logsBloom: '0x00000004000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000080020000000000000200010000000000000000000001000000800000000000000000000000000000000000000000000000000000100100000000000000000000008000000000000000000000000000000002000000000000000000000'
253+
status: '0x1'
254+
to: '0xfd584430cafa2f451b4e2ebcf3986a21fff04350'
255+
transactionHash: '0x4a481e4649da999d92db0585c36cba94c18a33747e95dc235330e6c737c6f975'
256+
transactionIndex: '0x0'
257+
type: '0x0'
258+
- blockHash: '0x19514ce955c65e4dd2cd41f435a75a46a08535b8fc16bc660f8092b32590b182'
259+
blockNumber: '0x6f55'
260+
contractAddress: null
261+
cumulativeGasUsed: '0x1de3e'
262+
from: '0x712e3a792c974b3e3dbe41229ad4290791c75a82'
263+
gasUsed: '0x5208'
264+
blobGasUsed: '0x20000'
265+
effectiveGasPrice: '0x9502f907'
266+
blobGasPrice: '0x32'
267+
logs: []
268+
logsBloom: '0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
269+
status: '0x1'
270+
to: '0xd42e2b1c14d02f1df5369a9827cb8e6f3f75f338'
271+
transactionHash: '0xefb83b4e3f1c317e8da0f8e2fbb2fe964f34ee184466032aeecac79f20eacaf6'
272+
transactionIndex: '0x1'
273+
type: '0x2'

src/eth/client.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,41 @@
55
name: Chain ID
66
schema:
77
$ref: '#/components/schemas/uint'
8+
examples:
9+
- name: eth_chainId example
10+
params: []
11+
result:
12+
name: Chain ID
13+
value: '0x1'
814
- name: eth_syncing
915
summary: Returns an object with data about the sync status or false.
1016
params: []
1117
result:
1218
name: Syncing status
1319
schema:
1420
$ref: '#/components/schemas/SyncingStatus'
21+
examples:
22+
- name: eth_syncing example
23+
params: []
24+
result:
25+
name: Syncing status
26+
value:
27+
startingBlock: '0x0'
28+
currentBlock: '0x1518'
29+
highestBlock: '0x9567a3'
1530
- name: eth_coinbase
1631
summary: Returns the client coinbase address.
1732
params: []
1833
result:
1934
name: Coinbase address
2035
schema:
2136
$ref: '#/components/schemas/address'
37+
examples:
38+
- name: eth_coinbase example
39+
params: []
40+
result:
41+
name: Coinbase address
42+
value: '0xfe3b557e8fb62b89f4916b721be55ceb828dbd73'
2243
- name: eth_accounts
2344
summary: Returns a list of addresses owned by client.
2445
params: []
@@ -29,10 +50,23 @@
2950
type: array
3051
items:
3152
$ref: '#/components/schemas/address'
53+
examples:
54+
- name: eth_accounts example
55+
params: []
56+
result:
57+
name: Accounts
58+
value:
59+
- '0xd1f5279be4b4dd94133a23dee1b23f5bfc0db1d0'
3260
- name: eth_blockNumber
3361
summary: Returns the number of most recent block.
3462
params: []
3563
result:
3664
name: Block number
3765
schema:
3866
$ref: '#/components/schemas/uint'
67+
examples:
68+
- name: eth_blockNumber example
69+
params: []
70+
result:
71+
name: Block number
72+
value: '0x2377'

0 commit comments

Comments
 (0)