Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update json-rpc-interface.md #2039

Merged
merged 2 commits into from
Nov 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 4 additions & 31 deletions docs/json-rpc-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,6 @@ Get details about block
2. Include transactions: boolean literal - true/false
#### Return format
Same as `eth_getBlockByHash`
#### Exceptions
Raises "block not found" error if block is "rotated out"

### `eth_getTransactionByHash`
| Compatibility | |
Expand Down Expand Up @@ -746,6 +744,8 @@ Get all events matching a filter
Same as `eth_getFilterChanges`
#### Exceptions
Throws `INVALID_PARAMS` if filter cannot be found or if response size is exceeded
#### Notes
Response size is limited by number of consecutive blocks that can be requested. It is set in `getLogsBlocksLimit` config parameter, which currenly is 2000 blocks.

### `eth_getLogs`
| Compatibility | |
Expand All @@ -771,6 +771,8 @@ Same as `eth_getFilterLogs`, but doesn't require filter creation
Same as `eth_getFilterChanges`
#### Exceptions
Throws `INVALID_PARAMS` if block does not exist, if response size is exceeded, or `fromBlock` or `toBlock` are present together with `blockHash`
#### Notes
Response size limit is determined by `getLogsBlocksLimit` config parameter, and currenly is 2000 logs per request.

### `eth_compile*` and `eth_getCompilers`
Not supported
Expand Down Expand Up @@ -869,35 +871,6 @@ Object:
- "accessList" - empty list;
- "gasUsed" - "0x" prefixed hex `String` - result of `eth_estimateGas`.

### `eth_getBlockTransactionCountByHash`
| Compatibility | |
|-----|-----------|
| Core vs ETH | Unknown |
| Historic vs ETH | Unknown |

#### Description
Get number of transactions in a block
#### Parameters
1. Block hash: "0x"-prefixed hex `String`, 32 bytes
#### Return format
"0x"-prefixed hex `String`

### `eth_getBlockTransactionCountByNumber`
| Compatibility | |
|-----|-----------|
| Core vs ETH | Unknown |
| Historic vs ETH | Unknown |

#### Description
Get number of transactions in a block
#### Parameters
1. Block number:
- "latest" or "pending" - latest block is used;
- "earliest" - block 0;
- `String` representation of an integer block number, either decimal or "0x"-prefixed hexadecimal;
#### Return format
"0x"-prefixed hex `String`

### `eth_getFilterChangesEx`
| Compatibility | |
|-----|-----------|
Expand Down
Loading