Junod Local Dev Setup
Last updated
Was this helpful?
Last updated
Was this helpful?
Want to use junod
locally for development, or to work with smart contracts? You're in the right place. Running locally is a much easier solution than interacting with a testnet.
This guide focuses on running the chain. If you want to build the binary or develop in go, then check out:
Juno ships with an unsafe seed user in dev mode when you run the prebuilt docker container below, or one of the options that uses docker-compose
. You can import this user into the CLI by using the mnemonic from the Juno repo, i.e.:
When prompted, add the mnemonic:
You will then be returned an address to use: juno16g2rahf5846rxzp3fwlswy08fz8ccuwk03k57y
There is a prebuilt docker image . This will start a container with a seeded user. The address and mnemonic used here can be found in the docker/
directory of the repo. When you're done, you can use ctrl+c
to stop the container running.
Always pick a tagged version to run, ideally one that matches mainnet. The example below may be outdated as Juno releases frequently - you should check the to see which is current for you.
The quickest way to get up-and-running for development purposes, as is documented in the main repo, is to run:
If you're on the latest version of Docker, you may need to do `docker compose up` rather than `docker-compose up`
This builds and runs the node and:
Creates and initialises a validator
Adds a default user with a known address (juno16g2rahf5846rxzp3fwlswy08fz8ccuwk03k57y
)
To use a specific version of Juno, check out a tag before running docker compose.
To call Juno inside a container, use docker exec
like so:
If you don't want to go through the process of setting up a node and just want to experiment with the Juno uni testnet:
Get a public node's RPC address. These can be found pinned in Discord in the dev channel.
In ~/.juno/config/client.toml
set node="<public node RPC address>"
and chain-id="uni-6"
.
Create a key to use by running junod keys add <key-name>
.
Get that key's public address by running junod keys show <key-name> -a
.
Get some test Juno by sending $request <key-address>
in the #faucet Discord channel.
You can then verify that you have funds by running junod query bank balances <key-address>
. Happy hacking!
For a video that guides you through the above steps, some Juno contributors made a series called CosmWasm By Dummies that guides you through writing your first contract after setting up Juno:
For additional information on CosmWasm, check out the and their .