Set your Environment
Before you start, you have to decide where you'll run and test your contracts:
Run Your Own Node This option lets you set up and run a node locally.
Connect to the Malaga Testnet The Malaga testnet is live for quick testing, allowing you to deploy and run your contracts. To ensure it's active, check:
https://rpc.malaga-420.cosmwasm.com/status
https://faucet.malaga-420.cosmwasm.com/statusTokens on Testnet Andalucía (uand) - Used for validators. Málaga (umlg) - Used for paying fees.
Step 1: Choose an Interaction Tool
You have two primary tools for interacting with the testnet:
wasmd: A Go client.
Node REPL: This tool is recommended for contract operations.
Step 2: Setting Up wasmd Go CLI
Initialize the configuration of the network:
source <(curl -sSL https://raw.githubusercontent.com/CosmWasm/testnets/master/malaga-420/defaults.env)Create wallet addresses by typing:
wasmd keys add wallet
wasmd keys add wallet2Credit Tokens
If you're using a local node, you can skip this step, otherwise:
Configure wasmd
Step 3: Setting Up the CosmJS CLI Client
Prerequisites
You'll need Node.js (v12+) and npx.
Initialize CosmJS CLI
Contract Interactions
Last updated