Skip to main content

Local testnet

Recommended

For app development (CosmJS, CosmWasm, SafHandle), use Local devnet with chain ID safro-devnet-1, the bootstrap script, and local endpoints.

This page is the shortest path to confirm safrochaind works.

Initialize

safrochaind init localnode --chain-id safro-devnet-1

Create a key and fund it

safrochaind keys add validator --keyring-backend test
safrochaind add-genesis-account "$(safrochaind keys show validator -a --keyring-backend test)" 1000000000usaf

Create genesis tx and start

safrochaind gentx validator 700000000usaf --chain-id safro-devnet-1 --keyring-backend test
safrochaind collect-gentxs
safrochaind start

RPC: http://127.0.0.1:26657 · REST: http://127.0.0.1:1317