1、Go install.
wget https://go.dev/dl/go1.19.3.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.3.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
go version
2、Installing Rust in Linux
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Install the wasm32 target:
rustup default stable cargo version # If this is lower than 1.51.0, update rustup update stable rustup target list --installed rustup target add wasm32-unknown-unknown
3、wasmd
git clone https://github.com/CosmWasm/wasmd.git cd wasmd # replace the v0.16.0 with the most stable version on https://github.com/CosmWasm/wasmd/releases
# oysternet runs on wasmd v0.16.0
# replace the v0.27.0 with the most stable version on https://github.com/CosmWasm/wasmd/releases
git checkout v0.27.0 # git checkout v0.16.0
# build wasmd executable make install # verify the installation wasmd version
4、Setting up wasmd and Wallet
public testnet (Malaga-420)
setup env
source <(curl -sSL https://raw.githubusercontent.com/CosmWasm/testnets/master/malaga-420/defaults.env)
just the same as:
export CHAIN_ID="malaga-420" export TESTNET_NAME="malaga-420" export FEE_DENOM="umlg" export STAKE_DENOM="uand" export BECH32_HRP="wasm" export WASMD_VERSION="v0.27.0" export CONFIG_DIR=".wasmd" export BINARY="wasmd" export COSMJS_VERSION="v0.28.1" export GENESIS_URL="https://raw.githubusercontent.com/CosmWasm/testnets/master/malaga-420/config/genesis.json" export RPC="https://rpc.malaga-420.cosmwasm.com:443" export API="https://api.malaga-420.cosmwasm.com" export FAUCET="https://faucet.malaga-420.cosmwasm.com" export NODE=(--node $RPC) export TXFLAG=($NODE --chain-id $CHAIN_ID --gas-prices 0.25umlg --gas auto --gas-adjustment 1.3)
generate wallet
# add wallets for testing wasmd keys add wallet
requesting tokens form the faucet
JSON=$(jq -n --arg addr $(./wasmd keys show -a wallet) '{"denom":"umlg","address":$addr}') && curl -X POST --header "Content-Type: application/json" --data "$JSON" https://faucet.malaga-420.cosmwasm.com/credit
centos 7 yum install jq
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -ivh epel-release-latest-7.noarch.rpm yum repolist ##检查是否已添加至源列表 yum install jq
./wasmd query bank total $NODE
./wasmd query bank balances $(./wasmd keys show -a wallet) $NODE
标签:CentOS,--,com,wasmd,export,https,420,Cosmos,安装 From: https://www.cnblogs.com/lidonghao/p/16865384.html