# Setting Up Environment
You need an environment to run contracts. You can either run your node locally or connect to an existing network. For easy testing, musselnet network is online, you can use it to deploy and run your contracts. If you want to setup and run against a local blockchain, click here
To verify testnet is currently running, make sure the following URLs are all working for you:
- https://rpc.musselnet.cosmwasm.com/status (opens new window)
- https://faucet.musselnet.cosmwasm.com/status (opens new window)
- https://lcd.musselnet.cosmwasm.com/node_info (opens new window)
We have set up two native tokens -
ufrites) for becoming a validator and
You can use these to explore txs, addresses, validators and contracts feel free to deploy one pointing to our rpc/lcd servers and we will list it.
When interacting with network, you can either use
wasmd which is a Go client or Node REPL. Altough Node REPL is
recommended for contract operations, since JSON manipulation is not intuitive with the Shell/Go client.
# Setup Go CLI
wasmd exec, point it to testnets, create wallet and ask tokens from faucet:
First source the musselnet network configurations to the shell:
Setup the client:
You need some tokens in your address to interact. If you are using local node you can skip this step. Requesting tokens from faucet:
# Export wasmd Parameters
If you intend to use wasmd as client, we recommend you to setup these variables. Otherwise You will have to define type in node, chain id and gas-prices details with every command you execute. Also for this tutorial we will use these variables. So make sure you export these before proceeding.
# Setup Node REPL
Beyond the standard CLI tooling, we have also produced a flexible TypeScript library
CosmJS (opens new window), which runs in Node.js as well as in modern browsers
and handles queries and submitting transactions. Along with this library, we produced
@cosmjs/cli (opens new window), which is a super-charged Node console. It
await, does type checking for helpful error messages, and preloads many CosmJS utilities.
If you are comfortable with the Node console, you will probably find this easier and more powerful
than the CLI tooling.
Full usage and installation instructions are on the README (opens new window), also here are the source codes prepacked with network configurations you can use on-the-fly:
The command below is obsolete and updated soon.
Using the REPL:
You need to put RPC endpoint and
# Run Local Node (optional)
If you are interested in running your local network you can use the script below: