forked from ethereum/execution-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spec.json
1997 lines (1997 loc) · 53.3 KB
/
spec.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"openrpc": "1.0.0",
"info": {
"version": "1.0.10",
"title": "Ethereum JSON-RPC",
"description": "This API lets you interact with an EVM-based client via JSON-RPC",
"license": {
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
}
},
"methods": [
{
"name": "web3_clientVersion",
"description": "Returns the version of the current client",
"summary": "current client version",
"params": [],
"result": {
"name": "clientVersion",
"description": "client version",
"schema": {
"title": "clientVersion",
"type": "string"
}
}
},
{
"name": "web3_sha3",
"summary": "Hashes data",
"description": "Hashes data using the Keccak-256 algorithm",
"params": [
{
"name": "data",
"description": "data to hash using the Keccak-256 algorithm",
"summary": "data to hash",
"schema": {
"title": "data",
"type": "string",
"pattern": "^0x[a-fA-F\\d]+$"
}
}
],
"result": {
"name": "hashedData",
"description": "Keccak-256 hash of the given data",
"schema": {
"$ref": "#/components/schemas/Keccak"
}
},
"examples": [
{
"name": "sha3Example",
"params": [
{
"name": "sha3ParamExample",
"value": "0x68656c6c6f20776f726c64"
}
],
"result": {
"name": "sha3ResultExample",
"value": "0x47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad"
}
}
]
},
{
"name": "net_listening",
"summary": "returns listening status",
"description": "Determines if this client is listening for new network connections.",
"params": [],
"result": {
"name": "netListeningResult",
"description": "`true` if listening is active or `false` if listening is not active",
"schema": {
"title": "isNetListening",
"type": "boolean"
}
},
"examples": [
{
"name": "netListeningTrueExample",
"description": "example of true result for net_listening",
"params": [],
"result": {
"name": "netListeningExampleFalseResult",
"value": true
}
}
]
},
{
"name": "net_peerCount",
"summary": "number of peers",
"description": "Returns the number of peers currently connected to this client.",
"params": [],
"result": {
"name": "quantity",
"description": "number of connected peers.",
"schema": {
"title": "numConnectedPeers",
"description": "Hex representation of number of connected peers",
"type": "string"
}
}
},
{
"name": "net_version",
"summary": "Network identifier associated with network",
"description": "Returns the network ID associated with the current network.",
"params": [],
"result": {
"name": "networkId",
"description": "Network ID associated with the current network",
"schema": {
"title": "networkId",
"type": "string",
"pattern": "^[\\d]+$"
}
}
},
{
"name": "eth_blockNumber",
"summary": "Returns the number of most recent block.",
"params": [],
"result": {
"$ref": "#/components/contentDescriptors/BlockNumber"
}
},
{
"name": "eth_call",
"summary": "Executes a new message call (locally) immediately without creating a transaction on the block chain.",
"params": [
{
"$ref": "#/components/contentDescriptors/Transaction"
},
{
"$ref": "#/components/contentDescriptors/BlockNumber"
}
],
"result": {
"name": "returnValue",
"description": "The return value of the executed contract",
"schema": {
"$ref": "#/components/schemas/Bytes"
}
}
},
{
"name": "eth_chainId",
"summary": "Returns the currently configured chain id",
"description": "Returns the currently configured chain id, a value used in replay-protected transaction signing as introduced by [EIP-155](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md).",
"params": [],
"result": {
"name": "chainId",
"description": "hex format integer of the current chain id. Defaults are ETC=61, ETH=1, Morden=62.",
"schema": {
"title": "chainId",
"type": "string",
"pattern": "^0x[a-fA-F\\d]+$"
}
}
},
{
"name": "eth_coinbase",
"summary": "Returns the client coinbase address.",
"params": [],
"result": {
"name": "address",
"description": "The address owned by the client that is used as default for things like the mining reward",
"schema": {
"$ref": "#/components/schemas/Address"
}
}
},
{
"name": "eth_estimateGas",
"summary": "Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain. Note that the estimate may be significantly more than the amount of gas actually used by the transaction, for a variety of reasons including EVM mechanics and node performance.",
"params": [
{
"$ref": "#/components/contentDescriptors/Transaction"
}
],
"result": {
"name": "gasUsed",
"description": "The amount of gas used",
"schema": {
"$ref": "#/components/schemas/Integer"
}
}
},
{
"name": "eth_gasPrice",
"summary": "Returns the current price per gas in wei",
"params": [],
"result": {
"$ref": "#/components/contentDescriptors/GasPrice"
}
},
{
"name": "eth_feeHistory",
"summary": "Transaction fee history",
"description": "Returns base fee per gas and transaction effective priority fee per gas history for the requested block range if available. The range between headBlock-4 and headBlock is guaranteed to be available while retrieving data from the pending block and older history are optional to support. For pre-EIP-1559 blocks the gas prices are returned as rewards and zeroes are returned for the base fee per gas.",
"params": [
{
"name": "blockCount",
"description": "Number of blocks in the requested range. Between 1 and 1024 blocks can be requested in a single query. Less than requested may be returned if not all blocks are available.",
"required": true,
"schema": {
"$ref": "#/components/schemas/Integer"
}
},
{
"name": "newestBlock",
"description": "Highest number block of the requested range.",
"required": true,
"schema": {
"$ref": "#/components/schemas/BlockNumberOrTag"
}
},
{
"name": "rewardPercentiles",
"description": "A monotonically increasing list of percentile values to sample from each block's effective priority fees per gas in ascending order, weighted by gas used.",
"schema": {
"title": "rewardPercentiles",
"type": "array",
"items": {
"title": "rewardPercentile",
"description": "Floating point value between 0 and 100.",
"type": "number"
}
}
}
],
"result": {
"name": "feeHistoryResult",
"description": "Fee history for the returned block range. This can be a subsection of the requested range if not all blocks are available.",
"schema": {
"title": "feeHistoryResults",
"description": "Fee history results",
"type": "object",
"required": [
"firstBlock",
"baseFeePerGas",
"gasUsedRatio"
],
"properties": {
"oldestBlock": {
"title": "oldestBlock",
"description": "Lowest number block of the returned range.",
"$ref": "#/components/schemas/BlockNumber"
},
"baseFeePerGas": {
"title": "baseFeePerGasArray",
"description": "An array of block base fees per gas. This includes the next block after the newest of the returned range, because this value can be derived from the newest block. Zeroes are returned for pre-EIP-1559 blocks.",
"type": "array",
"items": {
"$ref": "#/components/schemas/Integer"
}
},
"gasUsedRatio": {
"title": "gasUsedArray",
"description": "An array of block gas used ratios. These are calculated as the ratio of gasUsed and gasLimit.",
"type": "array",
"items": {
"title": "gasUsedRatio",
"description": "Floating point value between 0 and 1.",
"type": "number"
}
},
"reward": {
"title": "rewardArray",
"description": "A two-dimensional array of effective priority fees per gas at the requested block percentiles.",
"type": "array",
"items": {
"title": "rewardPercentileArray",
"description": "An array of effective priority fee per gas data points from a single block. All zeroes are returned if the block is empty.",
"type": "array",
"items": {
"title": "rewardPercentile",
"description": "A given percentile sample of effective priority fees per gas from a single block in ascending order, weighted by gas used. Zeroes are returned if the block is empty.",
"$ref": "#/components/schemas/Integer"
}
}
}
}
}
}
},
{
"name": "eth_getBalance",
"summary": "Returns Ether balance of a given or account or contract",
"params": [
{
"name": "address",
"required": true,
"description": "The address of the account or contract",
"schema": {
"$ref": "#/components/schemas/Address"
}
},
{
"name": "blockNumber",
"description": "A BlockNumber at which to request the balance",
"schema": {
"$ref": "#/components/schemas/BlockNumber"
}
}
],
"result": {
"name": "getBalanceResult",
"schema": {
"$ref": "#/components/schemas/IntegerOrNull"
}
}
},
{
"name": "eth_getBlockByHash",
"summary": "Gets a block for a given hash",
"params": [
{
"name": "blockHash",
"required": true,
"schema": {
"$ref": "#/components/schemas/BlockHash"
}
},
{
"name": "includeTransactions",
"description": "If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.",
"required": true,
"schema": {
"title": "isTransactionsIncluded",
"type": "boolean"
}
}
],
"result": {
"name": "getBlockByHashResult",
"schema": {
"$ref": "#/components/schemas/BlockOrNull"
}
}
},
{
"name": "eth_getBlockByNumber",
"summary": "Gets a block for a given number",
"params": [
{
"$ref": "#/components/contentDescriptors/BlockNumber"
},
{
"name": "includeTransactions",
"description": "If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.",
"required": true,
"schema": {
"title": "isTransactionsIncluded",
"type": "boolean"
}
}
],
"result": {
"name": "getBlockByNumberResult",
"schema": {
"$ref": "#/components/schemas/BlockOrNull"
}
}
},
{
"name": "eth_getBlockTransactionCountByHash",
"summary": "Returns the number of transactions in a block from a block matching the given block hash.",
"params": [
{
"$ref": "#/components/contentDescriptors/BlockHash"
}
],
"result": {
"name": "blockTransactionCountByHash",
"description": "The Number of total transactions in the given block",
"schema": {
"$ref": "#/components/schemas/IntegerOrNull"
}
}
},
{
"name": "eth_getBlockTransactionCountByNumber",
"summary": "Returns the number of transactions in a block from a block matching the given block number.",
"params": [
{
"$ref": "#/components/contentDescriptors/BlockNumber"
}
],
"result": {
"name": "blockTransactionCountByHash",
"description": "The Number of total transactions in the given block",
"schema": {
"$ref": "#/components/schemas/IntegerOrNull"
}
}
},
{
"name": "eth_getCode",
"summary": "Returns code at a given contract address",
"params": [
{
"name": "address",
"required": true,
"description": "The address of the contract",
"schema": {
"$ref": "#/components/schemas/Address"
}
},
{
"name": "blockNumber",
"description": "A BlockNumber of which the code existed",
"schema": {
"$ref": "#/components/schemas/BlockNumber"
}
}
],
"result": {
"name": "bytes",
"schema": {
"$ref": "#/components/schemas/Bytes"
}
}
},
{
"name": "eth_getFilterChanges",
"summary": "Polling method for a filter, which returns an array of logs which occurred since last poll.",
"params": [
{
"name": "filterId",
"required": true,
"schema": {
"$ref": "#/components/schemas/FilterId"
}
}
],
"result": {
"name": "logResult",
"schema": {
"title": "logResult",
"type": "array",
"items": {
"$ref": "#/components/schemas/Log"
}
}
}
},
{
"name": "eth_getFilterLogs",
"summary": "Returns an array of all logs matching filter with given id.",
"params": [
{
"name": "filterId",
"required": true,
"schema": {
"$ref": "#/components/schemas/FilterId"
}
}
],
"result": {
"$ref": "#/components/contentDescriptors/Logs"
}
},
{
"name": "eth_getRawTransactionByHash",
"summary": "Returns raw transaction data of a transaction with the given hash.",
"params": [
{
"$ref": "#/components/contentDescriptors/TransactionHash"
}
],
"result": {
"name": "rawTransactionByHash",
"description": "The raw transaction data",
"schema": {
"$ref": "#/components/schemas/Bytes"
}
}
},
{
"name": "eth_getRawTransactionByBlockHashAndIndex",
"summary": "Returns raw transaction data of a transaction with the block hash and index of which it was mined.",
"params": [
{
"$ref": "#/components/contentDescriptors/BlockHash"
},
{
"name": "index",
"description": "The ordering in which a transaction is mined within its block.",
"required": true,
"schema": {
"$ref": "#/components/schemas/Integer"
}
}
],
"result": {
"name": "rawTransaction",
"description": "The raw transaction data",
"schema": {
"$ref": "#/components/schemas/Bytes"
}
}
},
{
"name": "eth_getRawTransactionByBlockNumberAndIndex",
"summary": "Returns raw transaction data of a transaction with the block number and index of which it was mined.",
"params": [
{
"$ref": "#/components/contentDescriptors/BlockNumber"
},
{
"name": "index",
"description": "The ordering in which a transaction is mined within its block.",
"required": true,
"schema": {
"$ref": "#/components/schemas/Integer"
}
}
],
"result": {
"name": "rawTransaction",
"description": "The raw transaction data",
"schema": {
"$ref": "#/components/schemas/Bytes"
}
}
},
{
"name": "eth_getLogs",
"summary": "Returns an array of all logs matching a given filter object.",
"params": [
{
"$ref": "#/components/contentDescriptors/Filter"
}
],
"result": {
"$ref": "#/components/contentDescriptors/Logs"
}
},
{
"name": "eth_getStorageAt",
"summary": "Gets a storage value from a contract address, a position, and an optional blockNumber",
"params": [
{
"$ref": "#/components/contentDescriptors/Address"
},
{
"$ref": "#/components/contentDescriptors/Position"
},
{
"$ref": "#/components/contentDescriptors/BlockNumber"
}
],
"result": {
"name": "dataWord",
"schema": {
"$ref": "#/components/schemas/DataWord"
}
}
},
{
"name": "eth_getTransactionByBlockHashAndIndex",
"summary": "Returns the information about a transaction requested by the block hash and index of which it was mined.",
"params": [
{
"$ref": "#/components/contentDescriptors/BlockHash"
},
{
"name": "index",
"description": "The ordering in which a transaction is mined within its block.",
"required": true,
"schema": {
"$ref": "#/components/schemas/Integer"
}
}
],
"result": {
"$ref": "#/components/contentDescriptors/TransactionResult"
},
"examples": [
{
"name": "nullExample",
"params": [
{
"name": "blockHashExample",
"value": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
},
{
"name": "indexExample",
"value": "0x0"
}
],
"result": {
"name": "nullResultExample",
"value": null
}
}
]
},
{
"name": "eth_getTransactionByBlockNumberAndIndex",
"summary": "Returns the information about a transaction requested by the block number and index of which it was mined.",
"params": [
{
"$ref": "#/components/contentDescriptors/BlockNumber"
},
{
"name": "index",
"description": "The ordering in which a transaction is mined within its block.",
"required": true,
"schema": {
"$ref": "#/components/schemas/Integer"
}
}
],
"result": {
"$ref": "#/components/contentDescriptors/TransactionResult"
}
},
{
"name": "eth_getTransactionByHash",
"summary": "Returns the information about a transaction requested by transaction hash.",
"params": [
{
"$ref": "#/components/contentDescriptors/TransactionHash"
}
],
"result": {
"$ref": "#/components/contentDescriptors/TransactionResult"
}
},
{
"name": "eth_getTransactionCount",
"summary": "Returns the number of transactions sent from an address",
"params": [
{
"$ref": "#/components/contentDescriptors/Address"
},
{
"$ref": "#/components/contentDescriptors/BlockNumber"
}
],
"result": {
"name": "transactionCount",
"schema": {
"title": "nonceOrNull",
"oneOf": [
{
"$ref": "#/components/schemas/Nonce"
},
{
"$ref": "#/components/schemas/Null"
}
]
}
}
},
{
"name": "eth_getTransactionReceipt",
"summary": "Returns the receipt information of a transaction by its hash.",
"params": [
{
"$ref": "#/components/contentDescriptors/TransactionHash"
}
],
"result": {
"name": "transactionReceiptResult",
"description": "returns either a receipt or null",
"schema": {
"title": "transactionReceiptOrNull",
"oneOf": [
{
"$ref": "#/components/schemas/Receipt"
},
{
"$ref": "#/components/schemas/Null"
}
]
}
}
},
{
"name": "eth_getUncleByBlockHashAndIndex",
"summary": "Returns information about a uncle of a block by hash and uncle index position.",
"params": [
{
"$ref": "#/components/contentDescriptors/BlockHash"
},
{
"name": "index",
"description": "The ordering in which a uncle is included within its block.",
"required": true,
"schema": {
"$ref": "#/components/schemas/Integer"
}
}
],
"result": {
"name": "uncle",
"schema": {
"$ref": "#/components/schemas/BlockOrNull"
}
}
},
{
"name": "eth_getUncleByBlockNumberAndIndex",
"summary": "Returns information about a uncle of a block by hash and uncle index position.",
"params": [
{
"name": "uncleBlockNumber",
"description": "The block in which the uncle was included",
"required": true,
"schema": {
"$ref": "#/components/schemas/BlockNumber"
}
},
{
"name": "index",
"description": "The ordering in which a uncle is included within its block.",
"required": true,
"schema": {
"$ref": "#/components/schemas/Integer"
}
}
],
"result": {
"name": "uncleResult",
"description": "returns an uncle block or null",
"schema": {
"$ref": "#/components/schemas/BlockOrNull"
}
},
"examples": [
{
"name": "nullResultExample",
"params": [
{
"name": "uncleBlockNumberExample",
"value": "0x0"
},
{
"name": "uncleBlockNumberIndexExample",
"value": "0x0"
}
],
"result": {
"name": "nullResultExample",
"value": null
}
}
]
},
{
"name": "eth_getUncleCountByBlockHash",
"summary": "Returns the number of uncles in a block from a block matching the given block hash.",
"params": [
{
"$ref": "#/components/contentDescriptors/BlockHash"
}
],
"result": {
"name": "uncleCountResult",
"description": "The Number of total uncles in the given block",
"schema": {
"$ref": "#/components/schemas/IntegerOrNull"
}
}
},
{
"name": "eth_getUncleCountByBlockNumber",
"summary": "Returns the number of uncles in a block from a block matching the given block number.",
"params": [
{
"$ref": "#/components/contentDescriptors/BlockNumber"
}
],
"result": {
"$ref": "#/components/contentDescriptors/UncleCountResult"
}
},
{
"name": "eth_getProof",
"summary": "Returns the account- and storage-values of the specified account including the Merkle-proof.",
"params": [
{
"name": "address",
"description": "The address of the account or contract",
"required": true,
"schema": {
"$ref": "#/components/schemas/Address"
}
},
{
"name": "storageKeys",
"required": true,
"schema": {
"title": "storageKeys",
"description": "A storage key is indexed from the solidity compiler by the order it is declared. For mappings it uses the keccak of the mapping key with its position (and recursively for X-dimensional mappings)",
"items": {
"$ref": "#/components/schemas/StorageProofKey"
}
}
},
{
"$ref": "#/components/contentDescriptors/BlockNumber"
}
],
"result": {
"name": "account",
"schema": {
"title": "proofAccountOrNull",
"oneOf": [
{
"title": "proofAccount",
"type": "object",
"description": "The merkle proofs of the specified account connecting them to the blockhash of the block specified",
"properties": {
"address": {
"title": "proofAccountAddress",
"description": "The address of the account or contract of the request",
"$ref": "#/components/schemas/Address"
},
"accountProof": {
"$ref": "#/components/schemas/ProofNodes"
},
"balance": {
"title": "proofAccountBalance",
"description": "The Ether balance of the account or contract of the request",
"$ref": "#/components/schemas/Integer"
},
"codeHash": {
"title": "proofAccountCodeHash",
"description": "The code hash of the contract of the request (keccak(NULL) if external account)",
"$ref": "#/components/schemas/Keccak"
},
"nonce": {
"title": "proofAccountNonce",
"description": "The transaction count of the account or contract of the request",
"$ref": "#/components/schemas/Nonce"
},
"storageHash": {
"title": "proofAccountStorageHash",
"description": "The storage hash of the contract of the request (keccak(rlp(NULL)) if external account)",
"$ref": "#/components/schemas/Keccak"
},
"storageProof": {
"$ref": "#/components/schemas/StorageProof"
}
}
},
{
"$ref": "#/components/schemas/Null"
}
]
}
}
},
{
"name": "eth_getWork",
"summary": "Returns the hash of the current block, the seedHash, and the boundary condition to be met ('target').",
"params": [],
"result": {
"name": "work",
"schema": {
"title": "getWorkResults",
"type": "array",
"items": [
{
"$ref": "#/components/schemas/PowHash"
},
{
"$ref": "#/components/schemas/SeedHash"
},
{
"$ref": "#/components/schemas/Difficulty"
}
]
}
}
},
{
"name": "eth_hashrate",
"summary": "Returns the number of hashes per second that the node is mining with.",
"params": [],
"result": {
"name": "hashesPerSecond",
"description": "Integer of the number of hashes per second",
"schema": {
"$ref": "#/components/schemas/Integer"
}
}
},
{
"name": "eth_mining",
"summary": "Returns true if client is actively mining new blocks.",
"params": [],
"result": {
"name": "mining",
"description": "Whether or not the client is mining",
"schema": {
"type": "boolean"
}
}
},
{
"name": "eth_newBlockFilter",
"summary": "Creates a filter in the node, to notify when a new block arrives. To check if the state has changed, call eth_getFilterChanges.",
"params": [],
"result": {
"$ref": "#/components/contentDescriptors/FilterId"
}
},
{
"name": "eth_newFilter",
"summary": "Creates a filter object, based on filter options, to notify when the state changes (logs). To check if the state has changed, call eth_getFilterChanges.",
"params": [
{
"$ref": "#/components/contentDescriptors/Filter"
}
],
"result": {
"name": "filterId",
"description": "The filter ID for use in `eth_getFilterChanges`",
"schema": {
"$ref": "#/components/schemas/Integer"
}
}
},
{
"name": "eth_newPendingTransactionFilter",
"summary": "Creates a filter in the node, to notify when new pending transactions arrive. To check if the state has changed, call eth_getFilterChanges.",
"params": [],
"result": {
"$ref": "#/components/contentDescriptors/FilterId"
}
},
{
"name": "eth_pendingTransactions",
"summary": "Returns the transactions that are pending in the transaction pool and have a from address that is one of the accounts this node manages.",
"params": [],
"result": {
"name": "pendingTransactions",
"schema": {
"$ref": "#/components/schemas/Transactions"
}
}
},
{
"name": "eth_protocolVersion",
"summary": "Returns the current ethereum protocol version.",
"params": [],
"result": {
"name": "protocolVersion",
"description": "The current ethereum protocol version",
"schema": {
"$ref": "#/components/schemas/Integer"
}
}
},
{
"name": "eth_sendRawTransaction",
"summary": "Creates new message call transaction or a contract creation for signed transactions.",
"params": [
{
"name": "signedTransactionData",
"required": true,
"description": "The signed transaction data",
"schema": {
"$ref": "#/components/schemas/Bytes"
}
}
],
"result": {
"name": "transactionHash",
"description": "The transaction hash, or the zero hash if the transaction is not yet available.",
"schema": {
"$ref": "#/components/schemas/Keccak"
}
}
},
{
"name": "eth_submitHashrate",
"deprecated": true,
"summary": "Used for submitting mining hashrate.",
"params": [
{
"name": "hashRate",
"required": true,
"schema": {
"$ref": "#/components/schemas/DataWord"
}
},
{
"name": "id",
"required": true,
"description": "String identifying the client",
"schema": {
"$ref": "#/components/schemas/DataWord"