Skip to content

Withdraw from the Astria dusk Devnet

Withdrawal commands from Astria dusk devnet to Celestia and Noble testnets.

You will need the astria-cli, celestia-appd, and nobled installed. Follow the install steps here.

You can export the following to make the commands below easily copy and pastable.

bash
export ASTRIA_ADDRESS="<your-astria-address>"
export PRIV_KEY="<your-astria-address-private-key>"
export CELESTIA_KEY_NAME="<name-of-your-celestia-key>"
export CELESTIA_ADDRESS="<your-celestia-address>"
export NOBLE_KEY_NAME="<name-of-your-noble-key>"
export NOBLE_ADDRESS="<your-noble-address>"

Withdraw from Astria

bash
astria-cli sequencer ics20-withdrawal \
    --amount 1000 \
    --destination-chain-address=$CELESTIA_ADDRESS \
    --source-channel channel-0 \
    --private-key=$PRIV_KEY \
    --sequencer-url=https://rpc.sequencer.dusk-11.devnet.astria.org \
    --sequencer.chain-id astria-dusk-11 \
    --asset transfer/channel-0/utia \
    --fee-asset nria
bash
astria-cli sequencer ics20-withdrawal \
    --amount 1000 \
    --destination-chain-address=$NOBLE_ADDRESS \
    --source-channel channel-2 \
    --private-key=$PRIV_KEY \
    --sequencer-url=https://rpc.sequencer.dusk-11.devnet.astria.org \
    --sequencer.chain-id astria-dusk-11 \
    --asset transfer/channel-2/uusdc \
    --fee-asset nria

View Transactions on Astrotrek

Go to https://dusk.astrotrek.io/account/<your-astria-account>?tab=transactions to see the withdrawal transactions. You can also search the returned transaction hash directly in Astrotrek.

View Transactions on Mintscan

If you bridge out to an IBC chain, you can view your transactions by visiting the following:

  • https://www.mintscan.io/celestia-testnet/address/<your-celestia-address>
  • https://www.mintscan.io/noble-testnet/address/<your-noble-address>

You can also go directly to Mintscan and search for the txhash that is returned after sending your transaction, but it is recommended to view your address transaction history as this will show if an acknowledgement for your transfer was received.

Check your Devnet Balances

bash
astria-cli sequencer balance get $ASTRIA_ADDRESS --sequencer-url https://rpc.sequencer.dusk-11.devnet.astria.org/
bash
celestia-appd query bank balances $CELESTIA_ADDRESS --node=https://rpc-mocha.pops.one:443 --chain-id mocha-4
bash
nobled query bank balances $NOBLE_ADDRESS --node https://noble-testnet-rpc.polkachu.com:443
bash
osmosisd query bank balances $OSMOSIS_ADDRESS --node https://osmosis-testnet-rpc.polkachu.com:443
bash
strided query bank balances $STRIDE_ADDRESS --node https://stride-testnet-rpc.polkachu.com:443
bash
cast balance --rpc-url https://rpc.flame.dusk-11.devnet.astria.org $FLAME_ADDRESS