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, the MANTRA Hongbai Chain (Testnet) is live. You can use Hongbai to deploy and run your contracts.
To verify that the network is currently active, make sure the following URLs are working for you:
RPC Endpoints: https://rpc.hongbai.mantrachain.io
The network has one native token set up - OM (uom)
for becoming a validator and for paying fees.
The official MANTRA Hongbai Chain (Testnet) Block Explorer is at:
Big Dipper Block Explorer: https://explorer.hongbai.mantrachain.io
You can use the block explorer to explore transactions, addresses, validators and contracts.
When interacting with Hongbai, you can either use wasmd
which is a Go client, or the Node REPL. The Node REPL is recommended for contract operations, since JSON manipulation is not intuitive with the Shell/Go client.
Setting up environment variables
Let's configure the mantrachaind
executable, point it to the Hongbai network, create a wallet and ask for tokens from faucet:
First, create a file called mantrachaind-cli.env
:
Save the above and then source
the above to set the environment variables.
We'll use these environment variables later.
Setup wallet addresses
Set up wallets with addresses for storing tokens.
Running the command above will add two encrypted private keys to the mantrachaind keyring and display their attributes as follows:
Request tokens
You will need some amount of tokens stored in your wallet address in order to interact with the network. In order to request test-net tokens please check this section.
The faucet will issue tokens to one wallet address only once within a single 24 hour period, and only once for any wallet address from the one IP address within a single 24 hour period.
This is to limit the faucet from being drained of tokens and to maintain the integrity of the Network.
Last updated