Skip to content

Commit

Permalink
Update json-rpc-interface.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dimalit authored Nov 8, 2024
1 parent bb323ac commit 95d85d5
Showing 1 changed file with 4 additions and 31 deletions.
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 limit is determined by `getLogsBlocksLimit` config parameter, and currenly is 2000 logs per request.

### `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

0 comments on commit 95d85d5

Please sign in to comment.