Skip to content

astria-go cli Commands ​

Global Flags ​

Flags that can be used on any command in the cli.

FlagArg TypeOverride Env VarDescription
-h, --helpboolNoneDisplay the help information for a given command
--log-levelstringASTRIA_GO_LOG_LEVELSet the log level for the cli.

help ​

Print the help information for the given command.

Usage ​

bash
astria-go help
# or
astria-go [command] help

version ​

Prints the version of the cli.

Usage ​

bash
astria-go version

dev ​

The root command for all development commands.

Usage ​

bash
astria-go dev [command] [flags]

dev init ​

Downloads service binaries and initializes the local environment. This command must be run before the dev run command can be used.

Usage ​

bash
astria-go dev init [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--instancestringASTRIA_GO_INSTANCEChoose the target instance. (default "default")
--local-native-denomstringASTRIA_GO_LOCAL_NATIVE_DENOMSet the native denom for the local instance. This is used to set the 'native_asset_base_denomination' and 'allowed_fee_assets' in the CometBFT genesis.json file. (default "ntia")
--local-network-namestringASTRIA_GO_LOCAL_NETWORK_NAMESet the local network name for the instance. This is used to set the chain ID in the CometBFT genesis.json file. (default "sequencer-test-chain-0")

dev purge ​

The root command for all purge commands.

Usage ​

bash
astria-go dev purge [command] [flags]

dev purge all ​

Delete all data for a given instance. This deletes the entire instance directory within ~/.astria. astria-go dev init must be run before astria-go dev run can be used.

Usage ​

bash
astria-go dev purge all [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--instancestringASTRIA_GO_INSTANCEChoose the target instance. (default "default")

dev purge binaries ​

Delete all downloaded binaries for a given instance. astria-go dev init must be run before astria-go dev run can be used.

Usage ​

bash
astria-go dev purge binaries [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--instancestringASTRIA_GO_INSTANCEChoose the target instance. (default "default")

dev purge logs ​

Delete all logs for a given instance. This deletes all data in the ~/.astria/logs directory. Re-initializing is NOT required after using this command.

Usage ​

bash
astria-go dev purge logs [flags]

dev reset ​

The root command for resetting the local development instance data.

Usage ​

bash
astria-go dev reset [command] [flags]

dev reset config ​

Reset config files. This will return all files in the instance config directory to their default state as though initially created.

Usage ​

bash
astria-go dev reset config [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--instancestringASTRIA_GO_INSTANCEChoose the target instance. (default "default")
--local-native-denomstringASTRIA_GO_LOCAL_NATIVE_DENOMSet the native denom for the local instance. This is used to set the 'native_asset_base_denomination' and 'allowed_fee_assets' in the CometBFT genesis.json file. (default "ntia")
--local-network-namestringASTRIA_GO_LOCAL_NETWORK_NAMESet the local network name for the instance. This is used to set the chain ID in the CometBFT genesis.json file. (default "sequencer-test-chain-0")

dev reset networks ​

Reset the networks config for the cli. This command only resets the networks-config.toml file for the instance. No other config files are affected.

Usage ​

bash
astria-go dev reset networks [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--instancestringASTRIA_GO_INSTANCEChoose the target instance. (default "default")
--local-native-denomstringASTRIA_GO_LOCAL_NATIVE_DENOMSet the native denom for the local instance. This is used to set the 'native_asset_base_denomination' and 'allowed_fee_assets' in the CometBFT genesis.json file. (default "ntia")
--local-network-namestringASTRIA_GO_LOCAL_NETWORK_NAMESet the local network name for the instance. This is used to set the chain ID in the CometBFT genesis.json file. (default "sequencer-test-chain-0")

dev reset state ​

Reset Sequencer state. This will reset both the sequencer and Cometbft data to their initial state.

Usage ​

bash
astria-go dev reset state [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--instancestringASTRIA_GO_INSTANCEChoose the target instance. (default "default")

dev run ​

Runs a minimal, local Astria stack. You can choose to run a local sequencer stack or target a remote network by using the --network flag.

Usage ​

bash
# run a local sequencer
astria-go dev run [flags]
# run a local sequencer
astria-go dev run --network local [flags]
# run against a remote dev net
astria-go dev run --network dusk [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--instancestringASTRIA_GO_INSTANCEChoose the target instance. (default "default")
--networkstringASTRIA_GO_NETWORKSelect the network to run the services against. Valid networks are: local, dusk, dawn, mainnet (default "dawn")
--cometbft-pathstringASTRIA_GO_COMETBFT_PATHProvide an override path to a specific cometbft binary.
--composer-pathstringASTRIA_GO_COMPOSER_PATHProvide an override path to a specific composer binary.
--conductor-pathstringASTRIA_GO_CONDUCTOR_PATHProvide an override path to a specific conductor binary.
--sequencer-pathstringASTRIA_GO_SEQUENCER_PATHProvide an override path to a specific sequencer binary.
--service-log-levelstringASTRIA_GO_SERVICE_LOG_LEVELSet the log level for services (debug, info, error) (default "info")

dev setconfig ​

The root command for all config update commands within a development instance.

Usage ​

bash
astria-go dev setconfig [command] [flags]

dev setconfig feeasset ​

Set the sequencer fee asset across all config for the instance.

Usage ​

bash
astria-go dev setconfig feeasset [denom] [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--instancestringASTRIA_GO_INSTANCEChoose the target instance. (default "default")

dev setconfig nativeasset ​

Set the netive asset for the sequencer across all config for the instance.

Usage ​

bash
astria-go dev setconfig nativeasset [denom] [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--instancestringASTRIA_GO_INSTANCEChoose the target instance. (default "default")
--networkstringASTRIA_GO_NETWORKSpecify the network that the native asset is being updated for. (default "local")

dev setconfig rollupname ​

Set the rollup name across all config for the instance.

Usage ​

bash
astria-go dev setconfig rollupname [name] [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--instancestringASTRIA_GO_INSTANCEChoose the target instance. (default "default")
--networkstringASTRIA_GO_NETWORKSelect the network to run the services against. Valid networks are: local, dusk, dawn, mainnet (default "dawn")
--rollup-portstringASTRIA_GO_ROLLUP_PORTSelect the localhost port that the rollup will be running on. (default "8546")

dev setconfig sequencerchainid ​

Set the default sequencer chain id across all config for the instance.

Usage ​

bash
astria-go dev setconfig sequencerchainid [chain-id] [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--instancestringASTRIA_GO_INSTANCEChoose the target instance. (default "default")
--networkstringASTRIA_GO_NETWORKSpecify the network that the sequencer chain id is being updated for. (default "local")

dev version ​

Print the version of the services used by the CLI.

Usage ​

bash
astria-go dev version [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--instancestringASTRIA_GO_INSTANCEChoose the target instance. (default "default")
--networkstringASTRIA_GO_NETWORKSelect the network to run the services against. Valid networks are: local, dusk, dawn, mainnet (default "dawn")

sequencer ​

The root command for all sequencer commands.

Usage ​

bash
astria-go sequencer [command] [flags]

sequencer balances ​

Get the balances of an account on the Sequencer.

Usage ​

bash
astria-go sequencer balance [address] [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--jsonboolASTRIA_GO_JSONOutput an account's balances in JSON format.
--networkstringASTRIA_GO_NETWORKConfigure the values to target a specific network. (default "dawn")
-u, --sequencer-urlstringASTRIA_GO_SEQUENCER_URLThe URL of the sequencer to retrieve the balance from.

sequencer block ​

Get sequencer block at specified height.

Usage ​

bash
astria-go sequencer block [height] [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--jsonboolASTRIA_GO_JSONOutput an account's balances in JSON format.
--networkstringASTRIA_GO_NETWORKConfigure the values to target a specific network. (default "dawn")
-u, --sequencer-urlstringASTRIA_GO_SEQUENCER_URLThe URL of the sequencer to retrieve the balance from.

sequencer blockheight ​

Get the current block height of the Sequencer.

Usage ​

bash
astria-go sequencer blockheight [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--jsonboolASTRIA_GO_JSONOutput an account's balances in JSON format.
--networkstringASTRIA_GO_NETWORKConfigure the values to target a specific network. (default "dawn")
-u, --sequencer-urlstringASTRIA_GO_SEQUENCER_URLThe URL of the sequencer to retrieve the balance from.

sequencer bridge ​

The root command for the sequencer bridge commands.

Usage ​

bash
astria-go sequencer bridge [command]

sequencer bridge init ​

Initialize a bridge account.

Usage ​

bash
astria-go sequencer bridge init [rollup-id] [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--assetstringASTRIA_GO_ASSET_IDThe asset id of the asset we want to bridge (default "transfer/channel-0/utia")
--asyncboolASTRIA_GO_ASYNCIf true, the function will return immediately. If false, the function will wait for the transaction to be seen on the network.
--fee-assetstringASTRIA_GO_FEE_ASSET_IDThe fee asset id of the asset used for fees (default "ntia")
--jsonboolASTRIA_GO_JSONOutput bridge account as JSON
--keyfilestringASTRIA_GO_KEYFILEPath to secure keyfile for the bridge account.
--keyring-addressstringASTRIA_GO_KEYRING_ADDRESSThe address of the bridge account. Requires private key be stored in keyring.
--networkstringASTRIA_GO_NETWORKConfigure the values to target a specific network. (default "dawn")
--privkeystringASTRIA_GO_PRIVKEYThe private key of the bridge account.
-c, --sequencer-chain-idstringASTRIA_GO_SEQUENCER_CHAIN_IDThe chain ID of the sequencer. (default "dawn-1")
-u, --sequencer-urlstringASTRIA_GO_SEQUENCER_URLThe URL of the sequencer to init bridge account.
--sudo-addressstringASTRIA_GO_SUDO_ADDRESSSet the sudo address to use for the bridge account. The address of the sender is used if this is not set.
--withdrawer-addressstringASTRIA_GO_WITHDRAWER_ADDRESSSet the withdrawer address to use for the bridge account. The address of the sender is used if this is not set.

sequencer bridge lock ​

Locks tokens on the bridge account.

Usage ​

bash
astria-go sequencer bridge lock [address] [amount] [destination-chain-address] [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--assetstringASTRIA_GO_ASSET_IDThe asset id of the asset we want to bridge (default "transfer/channel-0/utia")
--asyncboolASTRIA_GO_ASYNCIf true, the function will return immediately. If false, the function will wait for the transaction to be seen on the network.
--fee-assetstringASTRIA_GO_FEE_ASSET_IDThe fee asset id of the asset used for fees (default "ntia")
--jsonboolASTRIA_GO_JSONOutput bridge account as JSON
--keyfilestringASTRIA_GO_KEYFILEPath to secure keyfile for the bridge account.
--keyring-addressstringASTRIA_GO_KEYRING_ADDRESSThe address of the bridge account. Requires private key be stored in keyring.
--networkstringASTRIA_GO_NETWORKConfigure the values to target a specific network. (default "dawn")
--privkeystringASTRIA_GO_PRIVKEYThe private key of the bridge account.
-c, --sequencer-chain-idstringASTRIA_GO_SEQUENCER_CHAIN_IDThe chain ID of the sequencer. (default "dawn-1")
-u, --sequencer-urlstringASTRIA_GO_SEQUENCER_URLThe URL of the sequencer to init bridge account.
--sudo-addressstringASTRIA_GO_SUDO_ADDRESSSet the sudo address to use for the bridge account. The address of the sender is used if this is not set.
--withdrawer-addressstringASTRIA_GO_WITHDRAWER_ADDRESSSet the withdrawer address to use for the bridge account. The address of the sender is used if this is not set.

sequencer createaccount ​

Create an account for the sequencer. The account will be used to sign transactions and blocks. The account will be created with a private key, public key, and address.

Usage ​

bash
astria-go sequencer createaccount [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--insecureboolASTRIA_GO_INSECUREPrint the account private key to terminal instead of storing securely.
--jsonboolASTRIA_GO_JSONOutput the account information in JSON format.
--keyfileboolASTRIA_GO_KEYFILEStore the account private key in a keyfile.
--keyringboolASTRIA_GO_KEYRINGStore the account private key in the system keyring.

sequencer getkey ​

Get private key for an address in system keyring.

Usage ​

bash
astria-go sequencer getkey [address] [flags]

sequencer ibctransfer ​

Ibc Transfer tokens from a sequencer account to another chain account.

Usage ​

bash
  astria-go sequencer ibctransfer [amount] [to] [src-channel] [--keyfile | --keyring-address | --privkey] [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--assetstringASTRIA_GO_ASSET_IDThe asset id of the asset we want to bridge (default "transfer/channel-0/utia")
--asyncboolASTRIA_GO_ASYNCIf true, the function will return immediately. If false, the function will wait for the transaction to be seen on the network.
--fee-assetstringASTRIA_GO_FEE_ASSET_IDThe fee asset id of the asset used for fees (default "ntia")
--jsonboolASTRIA_GO_JSONOutput bridge account as JSON
--keyfilestringASTRIA_GO_KEYFILEPath to secure keyfile for the bridge account.
--keyring-addressstringASTRIA_GO_KEYRING_ADDRESSThe address of the bridge account. Requires private key be stored in keyring.
--networkstringASTRIA_GO_NETWORKConfigure the values to target a specific network. (default "dawn")
--privkeystringASTRIA_GO_PRIVKEYThe private key of the bridge account.
-c, --sequencer-chain-idstringASTRIA_GO_SEQUENCER_CHAIN_IDThe chain ID of the sequencer. (default "dawn-1")
-u, --sequencer-urlstringASTRIA_GO_SEQUENCER_URLThe URL of the sequencer to init bridge account.

sequencer nonce ​

Retrieves and prints the nonce of an account.

Usage ​

bash
astria-go sequencer nonce [address] [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--jsonboolASTRIA_GO_JSONOutput in JSON format.
--networkstringASTRIA_GO_NETWORKConfigure the values to target a specific network. (default "dawn")
-u, --sequencer-urlstringASTRIA_GO_SEQUENCER_URLThe URL of the sequencer.

sequencer setconfig ​

Update the configuration for the sequencer commands config.

Usage ​

bash
astria-go sequencer setconfig [command] [flags]

sequencer setconfig feeasset ​

Sets the fee asset in the sequencer command configs.

Usage ​

bash
astria-go sequencer setconfig feeasset [denom] [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--networkstringASTRIA_GO_NETWORKSpecify the network that the sequencer chain id is being updated for. (default "local")

sequencer setconfig asset ​

Sets the asset in the sequencer command configs.

Usage ​

bash
astria-go sequencer setconfig asset [denom] [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--networkstringASTRIA_GO_NETWORKSpecify the network that the sequencer chain id is being updated for. (default "local")

sequencer setconfig sequencerchainid ​

Update the configuration for the sequencer commands config.

Usage ​

bash
astria-go sequencer setconfig sequencerchainid [chain-id] [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--networkstringASTRIA_GO_NETWORKSpecify the network that the sequencer chain id is being updated for. (default "local")

sequencer setkey ​

Set private key for an address in system keyring.

Usage ​

bash
astria-go sequencer setkey [address] [private key] [flags]

sequencer transfer ​

Transfer tokens from one account to another.

Usage ​

bash
astria-go sequencer transfer [amount] [to] [flags]

Flags ​

FlagArg TypeOverride Env VarDescription
--assetstringASTRIA_GO_ASSET_IDThe asset id of the asset we want to bridge (default "transfer/channel-0/utia")
--asyncboolASTRIA_GO_ASYNCIf true, the function will return immediately. If false, the function will wait for the transaction to be seen on the network.
--fee-assetstringASTRIA_GO_FEE_ASSET_IDThe fee asset id of the asset used for fees (default "ntia")
--jsonboolASTRIA_GO_JSONOutput bridge account as JSON
--keyfilestringASTRIA_GO_KEYFILEPath to secure keyfile for the bridge account.
--keyring-addressstringASTRIA_GO_KEYRING_ADDRESSThe address of the bridge account. Requires private key be stored in keyring.
--networkstringASTRIA_GO_NETWORKConfigure the values to target a specific network. (default "dawn")
--privkeystringASTRIA_GO_PRIVKEYThe private key of the bridge account.
-c, --sequencer-chain-idstringASTRIA_GO_SEQUENCER_CHAIN_IDThe chain ID of the sequencer. (default "dawn-1")
-u, --sequencer-urlstringASTRIA_GO_SEQUENCER_URLThe URL of the sequencer to init bridge account.