Skip to content

Commit 0172354

Browse files
alexandratranAlexandra Tran
andauthored
Update block parameter and eth_estimateGas default (#1832)
* Document truststore options Signed-off-by: Alexandra Tran <[email protected]> * add more context to descriptions Signed-off-by: Alexandra Tran <[email protected]> * Update block parameter and eth_estimateGas default Signed-off-by: Alexandra Tran <[email protected]> --------- Signed-off-by: Alexandra Tran <[email protected]> Co-authored-by: Alexandra Tran <[email protected]>
1 parent 6fdb1de commit 0172354

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

docs/public-networks/how-to/use-besu-api/json-rpc.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,14 @@ The block parameter can have one of the following values:
333333
:::
334334

335335
- `earliest` : _tag_ - The earliest (genesis) block.
336-
- `latest` : _tag_ - The last block mined.
337-
- `pending` : _tag_ - When used with [`eth_getTransactionCount`](../../reference/api/index.md#eth_gettransactioncount),
338-
refers to the last block mined plus pending transactions.
339-
When used with [`qbft_getValidatorsByBlockNumber`](../../../private-networks/reference/api/index.md#qbft_getvalidatorsbyblocknumber),
340-
returns a list of validators that will be used to produce the next block.
336+
- `latest` : _tag_ - The most recent block.
337+
- `pending` : _tag_ - The next anticipated block, except in the following cases:
338+
- For some methods (specified in their parameter description), `pending` returns the
339+
same value as `latest`.
340+
- For [`eth_getTransactionCount`](../../reference/api/index.md#eth_gettransactioncount),
341+
`pending` refers to the most recent block plus pending transactions.
342+
- For [`qbft_getValidatorsByBlockNumber`](../../../private-networks/reference/api/index.md#qbft_getvalidatorsbyblocknumber),
343+
`pending` returns a list of validators that will be used to produce the next block.
341344
- `finalized` : _tag_ - The most recent crypto-economically secure block.
342345
It cannot be reorganized outside manual intervention driven by community coordination.
343346
- `safe` : _tag_ - The most recent block that is safe from reorganization under honest majority and

docs/public-networks/reference/api/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2639,6 +2639,7 @@ By default, the `eth_estimateGas` error response includes the [revert reason](..
26392639
- `blockNumber`: _string_ - (optional) hexadecimal or decimal integer representing a block number, or one of
26402640
the string tags `latest`, `earliest`, `pending`, `finalized`, or `safe`, as described in
26412641
[block parameter](../../how-to/use-besu-api/json-rpc.md#block-parameter).
2642+
The default is `pending`.
26422643
26432644
- `stateOverride`: _object_ - The [address-to-state mapping](./objects.md#state-override-object).
26442645
Each entry specifies a state that will be temporarily overridden before executing the call.

0 commit comments

Comments
 (0)