|
16 | 16 | oneOf:
|
17 | 17 | - $ref: '#/components/schemas/notFound'
|
18 | 18 | - $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' |
19 | 61 | - name: eth_getBlockByNumber
|
20 | 62 | summary: Returns information about a block by number.
|
21 | 63 | params:
|
|
34 | 76 | oneOf:
|
35 | 77 | - $ref: '#/components/schemas/notFound'
|
36 | 78 | - $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' |
37 | 121 | - name: eth_getBlockTransactionCountByHash
|
38 | 122 | summary: Returns the number of transactions in a block from a block matching the given block hash.
|
39 | 123 | params:
|
|
47 | 131 | - $ref: '#/components/schemas/notFound'
|
48 | 132 | - title: Transaction count
|
49 | 133 | $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' |
50 | 142 | - name: eth_getBlockTransactionCountByNumber
|
51 | 143 | summary: Returns the number of transactions in a block matching the given block number.
|
52 | 144 | params:
|
|
60 | 152 | - $ref: '#/components/schemas/notFound'
|
61 | 153 | - title: Transaction count
|
62 | 154 | $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' |
63 | 163 | - name: eth_getUncleCountByBlockHash
|
64 | 164 | summary: Returns the number of uncles in a block from a block matching the given block hash.
|
65 | 165 | params:
|
|
73 | 173 | - $ref: '#/components/schemas/notFound'
|
74 | 174 | - title: Uncle count
|
75 | 175 | $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' |
76 | 184 | - name: eth_getUncleCountByBlockNumber
|
77 | 185 | summary: Returns the number of transactions in a block matching the given block number.
|
78 | 186 | params:
|
|
86 | 194 | - $ref: '#/components/schemas/notFound'
|
87 | 195 | - title: Uncle count
|
88 | 196 | $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' |
89 | 205 | - name: eth_getBlockReceipts
|
90 | 206 | summary: Returns the receipts of a block by number or hash.
|
91 | 207 | params:
|
|
102 | 218 | type: array
|
103 | 219 | items:
|
104 | 220 | $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' |
0 commit comments