-
Notifications
You must be signed in to change notification settings - Fork 27
/
evm_body.yaml
2646 lines (2558 loc) · 101 KB
/
evm_body.yaml
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
# ========= EVM Methods ==============
eth_blockNumber:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_blockNumber
eth_getBlockByHash:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getBlockByHash
params:
type: array
description: |
1. String - Hash of block
2. Boolean - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions. Defaults to `false`.
minItems: 2
maxItems: 2
items:
anyOf:
- $ref: '#/blockHash_param'
- title: Full Transaction Objects
type: boolean
default: false
prefixItems:
- $ref: '#/blockHash_param'
- title: Full Transaction Objects
type: boolean
default: false
eth_getBlockByNumber:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getBlockByNumber
params:
type: array
description: |
1. String - Either the hex value of a **block number** OR One of the following **block tags**:
* `pending` - A sample next block built by the client on top of latest and containing the set of transactions usually taken from local mempool. Intuitively, you can think of these as blocks that have not been mined yet.
* `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.
* `safe` - The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination. Intuitively, this block is “unlikely” to be re-orged.
* `finalized` - The most recent crypto-economically secure block, that has been accepted by >2/3 of validators. Cannot be re-orged outside of manual intervention driven by community coordination. Intuitively, this block is very unlikely to be re-orged.
* `earliest` - The lowest numbered block the client has available. Intuitively, you can think of this as the first block created.
2. Boolean - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions. Defaults to `false`.
minItems: 2
maxItems: 2
items:
anyOf:
- $ref: '#/blockNumber_or_blocktag_param_eth'
- title: Full Transaction Objects
type: boolean
default: false
prefixItems:
- $ref: '#/blockNumber_or_blocktag_param_eth'
- title: Full Transaction Objects
type: boolean
default: false
eth_getBlockByNumber_l2:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getBlockByNumber
params:
type: array
description: |
1. String - Either the hex value of a **block number** OR One of the following **block tags**:
* `pending` - A sample next block built by the client on top of latest and containing the set of transactions usually taken from local mempool. Intuitively, you can think of these as blocks that have not been mined yet.
* `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.
* `earliest` - The lowest numbered block the client has available. Intuitively, you can think of this as the first block created.
2. Boolean - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions. Defaults to `false`.
minItems: 2
maxItems: 2
items:
anyOf:
- $ref: '#/blockNumber_or_blocktag_param_l2'
- title: Full Transaction Objects
type: boolean
default: false
prefixItems:
- $ref: '#/blockNumber_or_blocktag_param_l2'
- title: Full Transaction Objects
type: boolean
default: false
eth_getLogs:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getLogs
params:
type: array
minItems: 1
maxItems: 1
items:
$ref: '#/filter_options'
eth_getTransactionByHash:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getTransactionByHash
params:
type: array
minItems: 1
maxItems: 1
items:
$ref: '#/transactionHash_param'
eth_getTransactionReceipt:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getTransactionReceipt
params:
type: array
minItems: 1
maxItems: 1
items:
$ref: '#/transactionHash_param'
eth_getBlockTransactionCountByHash:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getBlockTransactionCountByHash
params:
type: array
minItems: 1
maxItems: 1
items:
- $ref: '#/blockHash_param'
eth_getBlockTransactionCountByNumber:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getBlockTransactionCountByNumber
params:
type: array
description: |
String - Either the hex value of a **block number** OR **block tags**:
1. **block number** (in hex) OR
2. **block tag** (one of the following):
* `pending` - A sample next block built by the client on top of latest and containing the set of transactions usually taken from local mempool. Intuitively, you can think of these as blocks that have not been mined yet.
* `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.
* `safe` - The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination. Intuitively, this block is “unlikely” to be re-orged.
* `finalized` - The most recent crypto-economically secure block, that has been accepted by >2/3 of validators. Cannot be re-orged outside of manual intervention driven by community coordination. Intuitively, this block is very unlikely to be re-orged.
* `earliest` - The lowest numbered block the client has available. Intuitively, you can think of this as the first block created.
default: finalized
minItems: 1
maxItems: 1
items:
- $ref: '#/blockNumber_or_blocktag_param_eth'
eth_getBlockTransactionCountByNumber_l2:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getBlockTransactionCountByNumber
params:
type: array
description: |
String - Either the hex value of a **block number** OR **block tags**:
1. **block number** (in hex) OR
2. **block tag** (one of the following):
* `pending` - A sample next block built by the client on top of latest and containing the set of transactions usually taken from local mempool. Intuitively, you can think of these as blocks that have not been mined yet.
* `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.
* `earliest` - The lowest numbered block the client has available. Intuitively, you can think of this as the first block created.
default: latest
minItems: 1
maxItems: 1
items:
- $ref: '#/blockNumber_or_blocktag_param_l2'
eth_getTransactionCount:
allOf:
- $ref: '#/common_request_fields'
- $ref: '#/address_and_blockNumberOrTagOrHash_param_EIP1898'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getTransactionCount
eth_getTransactionByBlockHashAndIndex:
allOf:
- $ref: '#/common_request_fields'
- $ref: '#/blockHash_and_index_param'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getTransactionByBlockHashAndIndex
eth_getTransactionByBlockNumberAndIndex:
allOf:
- $ref: '#/common_request_fields'
- $ref: '#/blockNumber_and_index_param_eth'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getTransactionByBlockNumberAndIndex
eth_getTransactionByBlockNumberAndIndex_polygon_zkevm:
allOf:
- $ref: '#/common_request_fields'
- $ref: '#/blockNumber_and_index_param_polygon_zkevm'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getTransactionByBlockNumberAndIndex
eth_getBlockReceipts:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getBlockReceipts
params:
type: array
minItems: 1
maxItems: 1
items:
$ref: '#/BlockNumberOrTagOrHash'
eth_sendRawTransaction:
allOf:
- $ref: '#/common_request_fields'
- $ref: '#/signed_transaction_param'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_sendRawTransaction
alchemy_getGasOptimizedTransactionStatus:
allOf:
- $ref: '#/common_request_fields'
- $ref: '#/get_signed_txns_status_param'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: alchemy_getGasOptimizedTransactionStatus
eth_sendPrivateTransaction:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_sendPrivateTransaction
params:
type: array
minItems: 1
maxItems: 1
items:
type: object
properties:
tx:
type: string
description: 'Raw, signed transaction'
default: '0x02f87205158459682f00850c51e9727a82520894477db63b8e73aea96f201c3c4f5e8fbfcdd18b5c87038d7ea4c6800080c080a0312d6375e578ab953a41456d4be583a46dced97a9e38f349bb8e7b63d14cfc1ea001daea40332180670568a1864e6d3f910b194903128d4a0a5c499597f3f6ff40'
maxBlockNumber:
type: string
description: Hex-encoded number for highest block number in which the transaction should be included.
default: '0x2540BE400'
preferences:
type: object
properties:
fast:
type: boolean
description: Sends transaction with fast mode when true.
eth_cancelPrivateTransaction:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_cancelPrivateTransaction
params:
type: array
minItems: 1
maxItems: 1
items:
type: object
properties:
txHash:
type: string
description: Transaction hash for private transaction to be cancelled.
eth_getBalance:
allOf:
- $ref: '#/common_request_fields'
- $ref: '#/address_and_blockNumberOrTagOrHash_param_EIP1898'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getBalance
eth_getBalance_polygon_zkevm:
allOf:
- $ref: '#/common_request_fields'
- $ref: '#/address_and_blockNumberOrTagOrHash_param_EIP1898_polygon_zkevm'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getBalance
eth_getStorageAt:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getStorageAt
params:
type: array
description: |
1. String - 20 Bytes - address of the storage
2. String - Integer of the slot position in the storage (in hex)
3. String - Either the hex value of a **block number** OR a **block hash** OR One of the following **block tags**:
* `pending` - A sample next block built by the client on top of latest and containing the set of transactions usually taken from local mempool. Intuitively, you can think of these as blocks that have not been mined yet.
* `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.
* `safe` - The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination. Intuitively, this block is “unlikely” to be re-orged.
* `finalized` - The most recent crypto-economically secure block, that has been accepted by >2/3 of validators. Cannot be re-orged outside of manual intervention driven by community coordination. Intuitively, this block is very unlikely to be re-orged.
* `earliest` - The lowest numbered block the client has available. Intuitively, you can think of this as the first block created.
minItems: 3
maxItems: 3
items:
type: string
default:
['0x407d73d8a49eeb85d32cf465507dd71d507100c1', '0x0', 'latest']
eth_getStorageAt_polygon_zkevm:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getStorageAt
params:
type: array
description: |
1. String - 20 Bytes - address of the storage
2. String - Integer of the slot position in the storage (in hex)
3. String - Either the hex value of a **block number** OR a **block hash** OR One of the following **block tags**:
* `pending` - This is the same as `latest` for Polygon zkEVM.
* `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.
* `safe` - The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination. Intuitively, this block is “unlikely” to be re-orged.
* `finalized` - The most recent crypto-economically secure block, that has been accepted by >2/3 of validators. Cannot be re-orged outside of manual intervention driven by community coordination. Intuitively, this block is very unlikely to be re-orged.
* `earliest` - The lowest numbered block the client has available. Intuitively, you can think of this as the first block created.
minItems: 3
maxItems: 3
items:
type: string
default:
['0x407d73d8a49eeb85d32cf465507dd71d507100c1', '0x0', 'latest']
eth_getCode:
allOf:
- $ref: '#/common_request_fields'
- $ref: '#/address_and_blockNumberOrTagOrHash_param_EIP1898'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getCode
eth_getCode_polygon_zkevm:
allOf:
- $ref: '#/common_request_fields'
- $ref: '#/address_and_blockNumberOrTagOrHash_param_EIP1898_polygon_zkevm'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getCode
eth_accounts:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_accounts
eth_getProof:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getProof
params:
description: |
1. String - 20 Bytes - Address of the account
2. Array - 32 Bytes - array of storage-keys which should be proofed and included
3. String - Either the hex value of a **block number** OR One of the following **block tags**:
* `pending` - A sample next block built by the client on top of latest and containing the set of transactions usually taken from local mempool. Intuitively, you can think of these as blocks that have not been mined yet.
* `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.
* `safe` - The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination. Intuitively, this block is “unlikely” to be re-orged.
* `finalized` - The most recent crypto-economically secure block, that has been accepted by >2/3 of validators. Cannot be re-orged outside of manual intervention driven by community coordination. Intuitively, this block is very unlikely to be re-orged.
* `earliest` - The lowest numbered block the client has available. Intuitively, you can think of this as the first block created.
type: array
minItems: 1
maxItems: 1
items:
anyOf:
- $ref: '#/AddressParam'
- type: array
title: Array of Storage Keys
description: array of storage-keys which should be proofed and included
items:
type: string
default:
[
'0x742d35Cc6634C0532925a3b844Bc454e4438f44e',
'0x742d35Cc6634C0532925a3b844Bc454e4438f44f',
]
- $ref: '#/BlockNumberOrTagOrHash'
prefixItems:
- $ref: '#/AddressParam'
- type: array
title: Array of Storage Keys
description: array of storage-keys which should be proofed and included
items:
type: string
default:
[
'0x742d35Cc6634C0532925a3b844Bc454e4438f44e',
'0x742d35Cc6634C0532925a3b844Bc454e4438f44f',
]
- $ref: '#/BlockNumberOrTagOrHash'
eth_protocolVersion:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_protocolVersion
eth_gasPrice:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_gasPrice
eth_estimateGas_550:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_estimateGas
params:
type: array
minItems: 2
maxItems: 2
items:
oneOf:
- allOf:
- $ref: '#/transaction_object'
- $ref: '#/gas_550'
- $ref: '#/blockNumber_or_blocktag_param_eth'
prefixItems:
- allOf:
- $ref: '#/transaction_object'
- $ref: '#/gas_550'
- $ref: '#/blockNumber_or_blocktag_param_eth'
eth_estimateGas_polygon_zkEVM:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_estimateGas
params:
type: array
minItems: 2
maxItems: 2
items:
oneOf:
- allOf:
- $ref: '#/transaction_object'
- $ref: '#/gas_550'
- $ref: '#/blockNumber_or_blocktag_param_polygon_zkevm'
prefixItems:
- allOf:
- $ref: '#/transaction_object'
- $ref: '#/gas_550'
- $ref: '#/blockNumber_or_blocktag_param_eth'
eth_feeHistory:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_feeHistory
params:
type: array
minItems: 3
maxItems: 3
description: |
1. `integer` - Block count or range
2. `string` - Block number (in hex) or block tag
3. `array` of `integers` - (optional) Reward percentiles to sample from each block
items:
anyOf:
- type: integer
title: Block Count
description: Number of blocks in the requested range. Between 1 and 1024 blocks can be requested in a single query (may return less than requested range if not all blocks are available).
default: 4
- $ref: '#/blockNumber_or_blocktag_param_eth'
title: Newest Block
description: highest number block in the requested range
default: latest
- type: array
items:
type: number
title: Reward Percentiles
description: (optional) 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.
default: [25, 75]
prefixItems:
- type: integer
title: Block Count
description: Number of blocks in the requested range. Between 1 and 1024 blocks can be requested in a single query (may return less than requested range if not all blocks are available).
default: 4
- $ref: '#/blockNumber_or_blocktag_param_eth'
title: Newest Block
description: highest number block in the requested range
default: latest
- type: array
items:
type: number
title: Reward Percentiles
description: (optional) 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.
default: [25, 75]
eth_maxPriorityFeePerGas:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_maxPriorityFeePerGas
eth_chainId:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_chainId
net_version:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: net_version
net_listening:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: net_listening
eth_getUncleByBlockHashAndIndex:
allOf:
- $ref: '#/common_request_fields'
- $ref: '#/blockHash_uncleIndex_param'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getUncleByBlockHashAndIndex
eth_getUncleByBlockNumberAndIndex:
allOf:
- $ref: '#/common_request_fields'
- $ref: '#/blockNumber_uncleIndex_param_eth'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getUncleByBlockNumberAndIndex
eth_getUncleCountByBlockHash:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getUncleCountByBlockHash
params:
type: array
minItems: 1
maxItems: 1
items:
- $ref: '#/blockHash_param'
eth_getUncleCountByBlockNumber:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getUncleCountByBlockNumber
params:
type: array
minItems: 1
maxItems: 1
items:
$ref: '#/BlockNumber'
eth_getFilterChanges:
allOf:
- $ref: '#/common_request_fields'
- $ref: '#/filterId_param'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getFilterChanges
eth_getFilterLogs:
allOf:
- $ref: '#/common_request_fields'
- $ref: '#/filterId_param'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getFilterLogs
eth_newBlockFilter:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_newBlockFilter
eth_newFilter:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_newFilter
params:
type: array
minItems: 1
maxItems: 1
items:
$ref: '#/filter_options'
eth_newPendingTransactionFilter:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_newPendingTransactionFilter
eth_uninstallFilter:
allOf:
- $ref: '#/common_request_fields'
- $ref: '#/filterId_param'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_uninstallFilter
web3_clientVersion:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: web3_clientVersion
web3_sha3:
allOf:
- $ref: '#/common_request_fields'
- $ref: '#/shaHash_param'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: web3_sha3
eth_getTransactionReceiptsByBlock:
allOf:
- $ref: '#/common_request_fields'
- $ref: '#/blockNumber_or_blockHash_param_l2'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_getTransactionReceiptsByBlock
params:
type: array
minItems: 1
maxItems: 1
description: block_number in hex OR block_hash.
items:
type: string
default:
[
'0xb3e8c898cfbf4072eaad440e8606e578a33ca4fafc27d7936d83d7392ba3e939',
]
eth_syncing:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: eth_syncing
# ============= Transaction Receipts API Method ===============
alchemy_getTransactionReceipts_param:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: alchemy_getTransactionReceipts
params:
type: array
description: 'The api only takes in one parameter - an object with at least a blockNumber or blockHash. If both are provided, an error is returned asking you to choose either blockNumber or blockHash.'
minItems: 1
maxItems: 1
items:
type: object
properties:
blockNumber:
type: string
description: The block number you want to get transaction receipts for, in hex
pattern: '^0[xX][0-9a-fA-F]+$'
default: '0xF1D1C6'
blockHash:
type: string
description: The block hash you want to get transaction receipts for
pattern: '^0[xX][0-9a-fA-F]+$'
# Did not use the blockHash_param component because it has a default value and we don't want that here, because this method only accepts either blockNumber or blockHash, not both and in this way we can also provide a better description.
# ============= Token API Methods ===============
alchemy_getTokenAllowance:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: alchemy_getTokenAllowance
params:
type: array
description: null
minItems: 1
maxItems: 1
items:
type: object
required:
- contract
- owner
- spender
properties:
contract:
type: string
description: 'String - DATA, 20 Bytes - The address of the token contract.'
default: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'
owner:
type: string
description: 'String - DATA, 20 Bytes - The address of the token owner.'
default: '0xf1a726210550c306a9964b251cbcd3fa5ecb275d'
spender:
type: string
description: 'String - DATA, 20 Bytes - The address of the token spender.'
default: '0xdef1c0ded9bec7f1a1670819833240f027b25eff'
alchemy_getTokenBalances:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: alchemy_getTokenBalances
params:
type: array
description: |
1. String, 20 Bytes - The address to check token balances for.
2. One of the following token specifications, defaults to `erc20`
1. The String `erc20` - denotes the set of erc20 tokens that the address has ever held.
2. Array - A list of contract addresses. Suggested limit: 100 addresses **[omitted below]**
3. The String `DEFAULT_TOKENS` - denotes a query for the top 100 tokens by 24 hour volume - only available on Mainnet for Ethereum, Polygon, and Arbitrum. **[deprecated, please use `erc20` instead]**
3. Options (optional) - An object that contains the following settings **[omitted below]**:
1. `pageKey`: Applies only to the `erc20` request type. A string address used for pagination. If more results are available, a `pageKey` will be returned in the response.
2. `maxCount`: Applies only to the `erc20` request type. Specifies the maximum count of token balances to return per call. This value defaults to 100 and is currently capped at 100.
minItems: 2
maxItems: 3
items:
oneOf:
- type: string
title: Address
default: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045'
- oneOf:
- type: string
title: Token Specification
enum:
- erc20
- DEFAULT_TOKENS
default: erc20
- type: array
title: Array of Contract Addresses
items:
type: string
pattern: '^0[xX][0-9a-fA-F]+$'
default: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'
- type: object
title: Options
properties:
pageKey:
type: string
maxCount:
type: integer
default: 100
prefixItems:
- type: string
title: Address
default: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045'
- oneOf:
- type: string
title: Token Specification
enum:
- erc20
- DEFAULT_TOKENS
default: erc20
- type: array
title: Array of Contract Addresses
items:
type: string
pattern: '^0[xX][0-9a-fA-F]+$'
- type: object
title: Options
properties:
pageKey:
type: string
maxCount:
type: integer
default: 100
alchemy_getTokenMetadata:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: alchemy_getTokenMetadata
params:
type: array
description: 'string, 20 Bytes - Singular address for the token contract.'
minItems: 1
maxItems: 1
items:
type: string
default: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'
# ============= Trace API Methods ===============
trace_call:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: trace_call
params:
type: array
minItems: 1
maxItems: 1
description: |
1. `object` - Transaction Object (select in 1st box)
2. `string` - Type of trace, one or more of "trace" or "stateDiff". (select in 2nd box)
3. `string` - Block Identifier: Block hash, block number (in hex), or block tag (select in 3rd box)
items:
anyOf:
- $ref: '#/transaction_object'
description: transaction object.
- $ref: '#/trace_type_array'
- $ref: '#/blockNumber_or_blocktag_param_eth'
prefixItems:
- $ref: '#/transaction_object'
description: transaction object.
- $ref: '#/trace_type_array'
- $ref: '#/blockNumber_or_blocktag_param_eth'
trace_rawTransaction:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: trace_rawTransaction
params:
type: array
minItems: 1
maxItems: 1
description: |
1. `string` - Raw transaction data
2. `array` - Type of trace, one or more of "trace" or "stateDiff"
items:
anyOf:
- type: string
title: Raw Transaction
description: Raw transaction data.
default: '0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675'
- $ref: '#/trace_type_array'
prefixItems:
- type: string
title: Raw Transaction
description: Raw transaction data.
default: '0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675'
- $ref: '#/trace_type_array'
trace_replayBlockTransactions:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: trace_replayBlockTransactions
params:
type: array
minItems: 2
maxItems: 2
description: |
1. `string` - Block Identifier: Block hash, block number (in hex), or block tag
2. `array` - Type of trace, one or more of "trace" or "stateDiff"
items:
oneOf:
- $ref: '#/blockNumber_or_blocktag_param_eth'
- $ref: '#/trace_type_array'
prefixItems:
- $ref: '#/blockNumber_or_blocktag_param_eth'
- $ref: '#/trace_type_array'
trace_replayTransaction:
allOf:
- $ref: '#/common_request_fields'
- type: object
properties:
method:
$ref: ./components/schemas.yaml#/Method
default: trace_replayTransaction
params:
type: array
minItems: 2
maxItems: 2