1+ {
2+ "Definition" : {
3+ "title" : " Block object" ,
4+ "type" : " object" ,
5+ "required" : [
6+ " transactions" ,
7+ " uncles"
8+ ],
9+ "allOf" : [
10+ {
11+ "$ref" : " ./Header.json"
12+ },
13+ {
14+ "$ref" : " #/Transactions/Hash"
15+ },
16+ {
17+ "$ref" : " #/Uncles"
18+ }
19+ ]
20+ },
21+ "Number" : {
22+ "name" : " blockNumber" ,
23+ "title" : " Block Number" ,
24+ "summary" : " The number of blocks in the best chain" ,
25+ "schema" : {
26+ "$ref" : " ../schemas/uint.json"
27+ }
28+ },
29+ "Latest" : {
30+ "name" : " latestBlockNumber" ,
31+ "summary" : " the most recent block seen by this client" ,
32+ "required" : true ,
33+ "schema" : {
34+ "$ref" : " ../schemas/uint.json"
35+ }
36+ },
37+ "Transactions" : {
38+ "Count" : {
39+ "name" : " Transaction count" ,
40+ "schema" : {
41+ "title" : " Transaction count" ,
42+ "type" : " array" ,
43+ "items" : {
44+ "$ref" : " ../schemas/uint.json"
45+ }
46+ }
47+ },
48+ "Hash" : {
49+ "title" : " transactions" ,
50+ "type" : " array" ,
51+ "items" : {
52+ "$ref" : " ../schemas/hash32.json"
53+ }
54+ }
55+ },
56+ "Uncles" : {
57+ "title" : " uncles" ,
58+ "type" : " array" ,
59+ "items" : {
60+ "$ref" : " ../schemas/hash32.json"
61+ }
62+ },
63+ "OrNull" : {
64+ "title" : " blockOrNull" ,
65+ "oneOf" : [
66+ {
67+ "$ref" : " #/Definition"
68+ },
69+ {
70+ "$ref" : " ../schemas/null.json"
71+ }
72+ ]
73+ },
74+ "NumberOrNull" : {
75+ "title" : " blockNumberOrNull" ,
76+ "description" : " The block number. Note: if the block number is the pending block this will be Null" ,
77+ "oneOf" : [
78+ {
79+ "$ref" : " #/Number"
80+ },
81+ {
82+ "$ref" : " ../schemas/null.json"
83+ }
84+ ]
85+ },
86+ "NumberOrTag" : {
87+ "name" : " blockNumberOrTag" ,
88+ "title" : " Block number or tag" ,
89+ "required" : true ,
90+ "oneOf" : [
91+ {
92+ "$ref" : " #/Number"
93+ },
94+ {
95+ "$ref" : " ../schemas/blockTag.json"
96+ }
97+ ]
98+ },
99+ "HashOrNull" : {
100+ "title" : " blockHashOrNull" ,
101+ "description" : " The block hash. Note: if the block number is the pending block this will be Null" ,
102+ "oneOf" : [
103+ {
104+ "$ref" : " #/Hash"
105+ },
106+ {
107+ "$ref" : " ../schemas/null.json"
108+ }
109+ ]
110+ },
111+ "Hash" : {
112+ "name" : " Block hash" ,
113+ "required" : true ,
114+ "schema" : {
115+ "$ref" : " ../schemas/hash32.json"
116+ }
117+ },
118+ "NumberOrTagOrHash" : {
119+ "name" : " blockNumberOrIdentifierOrHash" ,
120+ "summary" : " The desired block number, its hash, or a block tag" ,
121+ "schema" : {
122+ "title" : " blockNumberOrTagOrHash" ,
123+ "oneOf" : [
124+ {
125+ "$ref" : " #/Number"
126+ },
127+ {
128+ "$ref" : " ../schemas/blockTag.json"
129+ },
130+ {
131+ "$ref" : " #/Hash"
132+ }
133+ ]
134+ }
135+ }
136+ }
0 commit comments