StackAsk is a community where developers ask questions, share answers and learn from each others real-world experience, so every solved problem helps the next person who runs into it.
source <(curl --insecure https://raw.githubusercontent.com/CosmWasm/testnets/master/malaga-420/defaults.env)
wasmd keys add wallet
JSON=$(jq -n --arg addr $(wasmd keys show -a wallet) '{"denom":"umlg","address":$addr}') && curl --insecure -X POST --header "Content-Type: application/json" --data "$JSON" https://faucet.malaga-420.cosmwasm.com/credit
export NODE="--node $RPC" export TXFLAG=" --chain-id --gas-prices 0.25 --gas auto --gas-adjustment 1.3"
wasmd query bank total $NODE
wasmd query bank balances $(wasmd keys show -a wallet) $NODE
RES=$(wasmd tx wasm store government.wasm --from wallet $TXFLAG -y --output json -b block) CODE_ID=$(echo $RES | jq -r '.logs[0].events[-1].attributes[0].value')
INIT='{"purchase_price":{"amount":"100","denom":"umlg"},"transfer_price":{"amount":"999","denom":"umlg"}}' wasmd tx wasm instantiate $CODE_ID "$INIT" --from wallet --label "name service" $TXFLAG -y --no-admin
wasmd query wasm list-contract-by-code $CODE_ID $NODE --output json CONTRACT=$(wasmd query wasm list-contract-by-code $CODE_ID $NODE --output json | jq -r '.contracts[-1]')
2.2K Point(s)
1.2K Point(s)
313 Point(s)
178 Point(s)
138 Point(s)
Input your email to receive reset password link, or if you remember your password, you can click