Skip to content

Commit d3e5504

Browse files
authored
[Altair] update infura endpoint for initial-state (#318)
1 parent 58d1f27 commit d3e5504

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/HowTo/Get-Started/Checkpoint-Start.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ starts Teku:
2020
```bash
2121
teku --eth1-endpoint=http://localhost:8545 \
2222
--validator-keys=/Users/me/mainnet/validator/keys:/Users/me/mainnet/validator/passwords \
23-
--initial-state=http://other-node:5051/eth/v1/debug/beacon/states/finalized
23+
--initial-state=http://other-node:5051/eth/v2/debug/beacon/states/finalized
2424
```
2525

2626
The command uses the [`--initial-state`](../../Reference/CLI/CLI-Syntax.md#initial-state) option
2727
to download the finalized checkpoint state from the
28-
[`/eth/v1/debug/beacon/states/`](https://consensys.github.io/teku/#operation/getEthV1DebugBeaconStatesWithState_id) endpoint
28+
[`/eth/v2/debug/beacon/states/`](https://consensys.github.io/teku/#operation/getEthV1DebugBeaconStatesWithState_id) endpoint
2929
on the beacon chain client (for example Teku).
3030

3131
!!! note
@@ -35,7 +35,7 @@ on the beacon chain client (for example Teku).
3535
download the file and name it `state.ssz` run:
3636

3737
```bash
38-
curl -o state.ssz -H 'Accept: application/octet-stream' http://other-node:5051/eth/v1/debug/beacon/states/finalized
38+
curl -o state.ssz -H 'Accept: application/octet-stream' http://other-node:5051/eth/v2/debug/beacon/states/finalized
3939
```
4040
[Infura](https://infura.io/) provides initial state endpoints for free.
4141
Registration to Infura services is required.

docs/HowTo/Migrate-Database.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ To migrate a RocksDB database in [prune mode] to a LevelDB2 database:
8080
1. [Download the latest finalized state] from a beacon chain node:
8181

8282
```bash
83-
curl -o state.ssz -H 'Accept: application/octet-stream' http://other-node:5051/eth/v1/debug/beacon/states/finalized
83+
curl -o state.ssz -H 'Accept: application/octet-stream' http://other-node:5051/eth/v2/debug/beacon/states/finalized
8484
```
8585

8686
!!! note

docs/Reference/CLI/CLI-Syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ using the [`--network`](#network) option.
406406
!!! tip
407407

408408
[Infura](https://infura.io/) can be used as the source of initial states with
409-
`--initial-state https://{projectid}:{secret}@eth2-beacon-mainnet.infura.io/eth/v1/debug/beacon/states/finalized`
409+
`--initial-state https://{projectid}:{secret}@eth2-beacon-mainnet.infura.io/eth/v2/debug/beacon/states/finalized`
410410

411411
### logging
412412

0 commit comments

Comments
 (0)