# 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, long living coral 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.coralnet.cosmwasm.com/status (opens new window)
- https://faucet.coralnet.cosmwasm.com/status (opens new window)
- https://lcd.coralnet.cosmwasm.com/node_info (opens new window)
We have set up two native tokens -
ureef) for being 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
coral 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
coral exec, point it to testnets, create wallet and ask tokens from faucet:
First source the coral 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:
# 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:
Using the REPL:
# Run Local Node (optional)
If you are interested in running your local network you can use the script below: