|
342 | 342 | } |
343 | 343 | } |
344 | 344 | }, |
| 345 | + { |
| 346 | + "name": "eth_getBlockReceipts", |
| 347 | + "summary": "Returns the receipts of a block by number or hash.", |
| 348 | + "params": [ |
| 349 | + { |
| 350 | + "name": "Block", |
| 351 | + "required": true, |
| 352 | + "schema": { |
| 353 | + "$ref": "#/components/schemas/BlockNumberOrTagOrHash" |
| 354 | + } |
| 355 | + } |
| 356 | + ], |
| 357 | + "result": { |
| 358 | + "name": "Receipts information", |
| 359 | + "schema": { |
| 360 | + "oneOf": [ |
| 361 | + { |
| 362 | + "$ref": "#/components/schemas/notFound" |
| 363 | + }, |
| 364 | + { |
| 365 | + "title": "Receipts information", |
| 366 | + "type": "array", |
| 367 | + "items": { |
| 368 | + "$ref": "#/components/schemas/ReceiptInfo" |
| 369 | + } |
| 370 | + } |
| 371 | + ] |
| 372 | + } |
| 373 | + } |
| 374 | + }, |
345 | 375 | { |
346 | 376 | "name": "eth_getBlockTransactionCountByHash", |
347 | 377 | "summary": "Returns the number of transactions in a block from a block matching the given block hash.", |
|
1356 | 1386 | }, |
1357 | 1387 | "required": ["from", "gas", "input"] |
1358 | 1388 | }, |
| 1389 | + "notFound": { |
| 1390 | + "title": "Not Found (null)", |
| 1391 | + "type": "null" |
| 1392 | + }, |
1359 | 1393 | "Block": { |
1360 | 1394 | "title": "Block object", |
1361 | 1395 | "type": "object", |
|
1508 | 1542 | ] |
1509 | 1543 | }, |
1510 | 1544 | "BlockNumberOrTagOrHash": { |
1511 | | - "title": "Block number or tag", |
| 1545 | + "title": "Block number, tag, or block hash", |
1512 | 1546 | "oneOf": [ |
1513 | 1547 | { |
1514 | 1548 | "title": "Block number", |
|
1885 | 1919 | }, |
1886 | 1920 | "ReceiptInfo": { |
1887 | 1921 | "type": "object", |
1888 | | - "title": "Receipt info", |
| 1922 | + "title": "Receipt information", |
1889 | 1923 | "required": [ |
1890 | 1924 | "blockHash", |
1891 | 1925 | "blockNumber", |
|
1898 | 1932 | "transactionIndex", |
1899 | 1933 | "effectiveGasPrice" |
1900 | 1934 | ], |
| 1935 | + "additionalProperties": false, |
1901 | 1936 | "properties": { |
| 1937 | + "type": { |
| 1938 | + "title": "type", |
| 1939 | + "$ref": "#/components/schemas/byte" |
| 1940 | + }, |
1902 | 1941 | "transactionHash": { |
1903 | 1942 | "title": "transaction hash", |
1904 | 1943 | "$ref": "#/components/schemas/hash32" |
|
1922 | 1961 | "to": { |
1923 | 1962 | "title": "to", |
1924 | 1963 | "description": "Address of the receiver or null in a contract creation transaction.", |
1925 | | - "$ref": "#/components/schemas/address" |
| 1964 | + "oneOf": [ |
| 1965 | + { |
| 1966 | + "title": "Contract Creation (null)", |
| 1967 | + "type": "null" |
| 1968 | + }, |
| 1969 | + { |
| 1970 | + "title": "Recipient Address", |
| 1971 | + "$ref": "#/components/schemas/address" |
| 1972 | + } |
| 1973 | + ] |
1926 | 1974 | }, |
1927 | 1975 | "cumulativeGasUsed": { |
1928 | 1976 | "title": "cumulative gas used", |
|
1937 | 1985 | "contractAddress": { |
1938 | 1986 | "title": "contract address", |
1939 | 1987 | "description": "The contract address created, if the transaction was a contract creation, otherwise null.", |
1940 | | - "$ref": "#/components/schemas/address" |
| 1988 | + "oneOf": [ |
| 1989 | + { |
| 1990 | + "$ref": "#/components/schemas/address" |
| 1991 | + }, |
| 1992 | + { |
| 1993 | + "title": "Null", |
| 1994 | + "type": "null" |
| 1995 | + } |
| 1996 | + ] |
1941 | 1997 | }, |
1942 | 1998 | "logs": { |
1943 | 1999 | "title": "logs", |
|
1953 | 2009 | "root": { |
1954 | 2010 | "title": "state root", |
1955 | 2011 | "description": "The post-transaction state root. Only specified for transactions included before the Byzantium upgrade.", |
1956 | | - "$ref": "#/components/schemas/bytes32" |
| 2012 | + "$ref": "#/components/schemas/hash32" |
1957 | 2013 | }, |
1958 | 2014 | "status": { |
1959 | 2015 | "title": "status", |
|
1962 | 2018 | }, |
1963 | 2019 | "effectiveGasPrice": { |
1964 | 2020 | "title": "effective gas price", |
1965 | | - "description": "The actual value per gas deducted from the senders account. Before EIP-1559, this is equal to the transaction's gas price. After, it is equal to baseFeePerGas + min(maxFeePerGas - baseFeePerGas, maxPriorityFeePerGas).", |
| 2021 | + "description": "The actual value per gas deducted from the sender's account. Before EIP-1559, this is equal to the transaction's gas price. After, it is equal to baseFeePerGas + min(maxFeePerGas - baseFeePerGas, maxPriorityFeePerGas).", |
1966 | 2022 | "$ref": "#/components/schemas/uint" |
1967 | 2023 | } |
1968 | 2024 | } |
|
0 commit comments