Skip to content

Commit a086b1a

Browse files
Add eth_config method documentation. (#1850)
* Add eth_config method documentation. Signed-off-by: bgravenorst <[email protected]> * Add result. Signed-off-by: bgravenorst <[email protected]> * Address reviewer feedback. Signed-off-by: bgravenorst <[email protected]> * Update docs/public-networks/reference/api/index.md Co-authored-by: Alexandra Carrillo <[email protected]> Signed-off-by: Byron Gravenorst <[email protected]> --------- Signed-off-by: bgravenorst <[email protected]> Signed-off-by: Byron Gravenorst <[email protected]> Co-authored-by: Alexandra Carrillo <[email protected]>
1 parent 7ef677f commit a086b1a

File tree

1 file changed

+103
-0
lines changed
  • docs/public-networks/reference/api

1 file changed

+103
-0
lines changed

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

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2498,6 +2498,109 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":51
24982498
24992499
</Tabs>
25002500
2501+
### `eth_config`
2502+
2503+
Returns the client's fork information for the current, next, and last known forks.
2504+
2505+
:::info
2506+
2507+
This method is defined in [EIP-7910](https://eips.ethereum.org/EIPS/eip-7910) and enables node operators to verify client readiness for upcoming forks and debug configuration mismatches.
2508+
2509+
:::
2510+
2511+
#### Parameters
2512+
2513+
None
2514+
2515+
#### Returns
2516+
2517+
`result`: _object_ - configuration information containing:
2518+
2519+
- `current`: _object_ - current fork configuration:
2520+
- `activationTime`: _number_ - fork activation timestamp (Unix epoch seconds)
2521+
- `blobSchedule`: _object_ - blob configuration parameters:
2522+
- `baseFeeUpdateFraction`: _number_ - base fee update fraction
2523+
- `max`: _number_ - maximum number of blobs per block
2524+
- `target`: _number_ - target number of blobs per block
2525+
- `chainId`: _string_ - chain ID in hexadecimal
2526+
- `forkId`: _string_ - fork hash as defined in [EIP-6122](https://eips.ethereum.org/EIPS/eip-6122)
2527+
- `precompiles`: _object_ - active precompiled contracts with names and addresses
2528+
- `systemContracts`: _object_ - system contract addresses
2529+
- `next`: _object_ - next fork configuration, or `null` if no future fork is scheduled.
2530+
- `last`: _object_ - the furthest configured future fork configuration (the future fork with
2531+
the largest `activationTime` among the client's configured forks). If only one future fork is configured, `next` and `last` are the same object. `null` if no future fork is scheduled.
2532+
2533+
<Tabs>
2534+
2535+
<TabItem value="curl HTTP request" label="curl HTTP request" default>
2536+
2537+
```bash
2538+
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_config","params":[],"id":1}' http://127.0.0.1:8545/ -H "Content-Type: application/json"
2539+
```
2540+
2541+
</TabItem>
2542+
2543+
<TabItem value="wscat WS request" label="wscat WS request">
2544+
2545+
```json
2546+
{ "jsonrpc": "2.0", "method": "eth_config", "params": [], "id": 1 }
2547+
```
2548+
2549+
</TabItem>
2550+
2551+
<TabItem value="JSON result" label="JSON result">
2552+
2553+
```json
2554+
{
2555+
"jsonrpc": "2.0",
2556+
"id": 1,
2557+
"result": {
2558+
"current": {
2559+
"activationTime": 1746612311,
2560+
"blobSchedule": {
2561+
"baseFeeUpdateFraction": 5007716,
2562+
"max": 9,
2563+
"target": 6
2564+
},
2565+
"chainId": "0x1",
2566+
"forkId": "0xc376cf8b",
2567+
"precompiles": {
2568+
"BLAKE2F": "0x0000000000000000000000000000000000000009",
2569+
"BLS12_G1ADD": "0x000000000000000000000000000000000000000b",
2570+
"BLS12_G1MSM": "0x000000000000000000000000000000000000000c",
2571+
"BLS12_G2ADD": "0x000000000000000000000000000000000000000d",
2572+
"BLS12_G2MSM": "0x000000000000000000000000000000000000000e",
2573+
"BLS12_MAP_FP2_TO_G2": "0x0000000000000000000000000000000000000011",
2574+
"BLS12_MAP_FP_TO_G1": "0x0000000000000000000000000000000000000010",
2575+
"BLS12_PAIRING_CHECK": "0x000000000000000000000000000000000000000f",
2576+
"BN254_ADD": "0x0000000000000000000000000000000000000006",
2577+
"BN254_MUL": "0x0000000000000000000000000000000000000007",
2578+
"BN254_PAIRING": "0x0000000000000000000000000000000000000008",
2579+
"ECREC": "0x0000000000000000000000000000000000000001",
2580+
"ID": "0x0000000000000000000000000000000000000004",
2581+
"KZG_POINT_EVALUATION": "0x000000000000000000000000000000000000000a",
2582+
"MODEXP": "0x0000000000000000000000000000000000000005",
2583+
"RIPEMD160": "0x0000000000000000000000000000000000000003",
2584+
"SHA256": "0x0000000000000000000000000000000000000002"
2585+
},
2586+
"systemContracts": {
2587+
"BEACON_ROOTS_ADDRESS": "0x000f3df6d732807ef1319fb7b8bb8522d0beac02",
2588+
"CONSOLIDATION_REQUEST_PREDEPLOY_ADDRESS": "0x0000bbddc7ce488642fb579f8b00f3a590007251",
2589+
"DEPOSIT_CONTRACT_ADDRESS": "0x00000000219ab540356cbb839cbe05303d7705fa",
2590+
"HISTORY_STORAGE_ADDRESS": "0x0000f90827f1c53a10cb7a02335b175320002935",
2591+
"WITHDRAWAL_REQUEST_PREDEPLOY_ADDRESS": "0x00000961ef480eb55e80d19ad83579a64c007002"
2592+
}
2593+
},
2594+
"next": null,
2595+
"last": null
2596+
}
2597+
}
2598+
```
2599+
2600+
</TabItem>
2601+
2602+
</Tabs>
2603+
25012604
### `eth_coinbase`
25022605
25032606
Returns the client coinbase address. The coinbase address is the account to pay mining rewards to.

0 commit comments

Comments
 (0)