From b7689056e7e3f416acf66780b9cea7c9a0f5499d Mon Sep 17 00:00:00 2001 From: Sam Bukowski Date: Tue, 17 Oct 2023 14:25:16 -0600 Subject: [PATCH] updated getting block height to use astria-cli --- .../2-configure-remote-rollup.md | 25 ++++++++----------- .../4-remote-rollup-deployment.md | 25 +++++++++++-------- 2 files changed, 26 insertions(+), 24 deletions(-) diff --git a/docs/running-a-rollup-on-astria-dusknet/2-configure-remote-rollup.md b/docs/running-a-rollup-on-astria-dusknet/2-configure-remote-rollup.md index 7a9c9820..a1856bc6 100644 --- a/docs/running-a-rollup-on-astria-dusknet/2-configure-remote-rollup.md +++ b/docs/running-a-rollup-on-astria-dusknet/2-configure-remote-rollup.md @@ -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. - - -```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 -`` in the steps below. - ## Creating your own Genesis Account You can add genesis account(s) to your rollup during configuration. @@ -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 +`` in the steps below. + Replace the following tags in the sections below, as follows: | Var Name | Var Type | Description | diff --git a/docs/running-a-rollup-on-astria-dusknet/4-remote-rollup-deployment.md b/docs/running-a-rollup-on-astria-dusknet/4-remote-rollup-deployment.md index 7a8693cd..fefa3acc 100644 --- a/docs/running-a-rollup-on-astria-dusknet/4-remote-rollup-deployment.md +++ b/docs/running-a-rollup-on-astria-dusknet/4-remote-rollup-deployment.md @@ -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 -`` tag in the following sections with this -value. - ## Creating your own Genesis Account You can add genesis account(s) to your rollup during configuration. @@ -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 +`` 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 +`` 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 |