Skip to content

Commit

Permalink
updated getting block height to use astria-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
sambukowski committed Oct 17, 2023
1 parent 1c9e6e7 commit b768905
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,6 @@ Endpoints for the remote cluster are the following:
| sequencer-faucet | faucet.sequencer.dusk-1.devnet.astria.org | 34.36.8.102 |
| sequencer-ingress | rpc.sequencer.dusk-1.devnet.astria.org | 34.111.73.187 |

## Get the Current Sequencer Block Height

Take the `sequencer-ingress` URL and run the following command to get the
current block height of the sequencer.

<!-- TODO: replace with the cli command when ready-->
```sh
curl -s https://rpc.sequencer.dusk-1.devnet.astria.org/block | jq .result.block.header.height
```

Keep track of this block height as it will be used for making the rollup config
later on. You will use this printed height in place of
`<INITIAL_SEQUENCER_BLOCK_HEIGHT>` in the steps below.

## Creating your own Genesis Account

You can add genesis account(s) to your rollup during configuration.
Expand Down Expand Up @@ -80,6 +66,17 @@ just install-cli

## Using the `astria-cli`

### Get Current Sequencer Block Height

```bash
astria-cli sequencer blockheight get \
--sequencer-url https://rpc.sequencer.dusk-1.devnet.astria.org/
```

Keep track of this block height as it will be used for making the rollup config
later on. You will use this printed height in place of
`<INITIAL_SEQUENCER_BLOCK_HEIGHT>` in the steps below.

Replace the following tags in the sections below, as follows:

| Var Name | Var Type | Description |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,6 @@ metadata:
kubernetes.io/ingress.class: nginx
```

## Get Current Sequencer Block Height

```bash
curl -s https://rpc.sequencer.dusk-1.devnet.astria.org/block | jq .result.block.header.height
```

Save the returned value for later. You will replace the
`<INITIAL_SEQUENCER_BLOCK_HEIGHT>` tag in the following sections with this
value.

## Creating your own Genesis Account

You can add genesis account(s) to your rollup during configuration.
Expand Down Expand Up @@ -149,8 +139,23 @@ cd astria
just install-cli
```

Keep track of this block height as it will be used for making the rollup config
later on. You will use this printed height in place of
`<INITIAL_SEQUENCER_BLOCK_HEIGHT>` in the steps below.

## Using the `astria-cli`

### Get Current Sequencer Block Height

```bash
astria-cli sequencer blockheight get \
--sequencer-url https://rpc.sequencer.dusk-1.devnet.astria.org/
```

Save the returned value for later. You will replace the
`<INITIAL_SEQUENCER_BLOCK_HEIGHT>` tag in the following sections with this
value.

Replace the tags in the commands and env vars below, as follows:

| Var Name | Var Type | Description |
Expand Down

0 comments on commit b768905

Please sign in to comment.