# Gno.land 测试网

By [NodeStake](https://paragraph.com/@nodestake) · 2022-06-15

---

(测试网1已结束，请看[测试网2教程](https://mirror.xyz/dashboard/edit/9uARU-75qyI3Pq46jBLKjygrUSU7X9WZY0gzSR39yJ4))

Gno是Cosmos创始人新的项目。当前测试网没有明确承诺奖励。

**安装基础环境**

    sudo apt-get install git curl build-essential make jq gcc snapd chrony -y
    

**安装Go 17+**

    cd ~
    curl https://dl.google.com/go/go1.17.6.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -cat <<'EOF' >>$HOME/.profile
    export GOROOT=/usr/local/go
    export GOPATH=$HOME/go
    export GO111MODULE=on
    export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
    EOFsource $HOME/.profile
    go version
    

**编译g**nokey**执行文件**

    cd $HOME
    git clone https://github.com/gnolang/gno.git
    cd ./gno
    make install_gnokey
    

**添加钱包，将地址和生成的助记词记下**

    gnokey keys add mykey
    

**注册用户**
--------

1.  从Faucet获取测试币，至少需要2001个GNOT
    

[https://gno.land/faucet](https://gno.land/faucet)

查询账户余额(YOUR\_ACCOUNT\_ADDRESS替换为你的地址)

    gnokey query auth/accounts/YOUR_ACCOUNT_ADDRESS — remote gno.land:36657
    

得到类似以下结果

    height: 0
    data: {
     “BaseAccount”: {
     “address”: “g1z0fyvylcz3x8yqanu2th2f9s8vljf83p494gkh”,
     “coins”: “2100gnot”,
     “public_key”: {
     “@type”: “/tm.PubKeySecp256k1”,
     “value”: “Azxxxxx3Qlg2kxxxxcRaodl9ccc6Lxxxxx”
     },
     “account_number”: “1234”,
     “sequence”: “0”
     }
    }
    

记下account\_number:1234，和sequence:0

2\. 创建用户

替换YOUR\_USERNAME为你的用户名，用户名只能是小写的字母和下划线，并且至少6个字母

替换ACCOUNT\_NUM为account\_number数，如上是1234

替换SEQ\_NUM为sequence数，如上是0

    gnokey maketx call mykey --pkgpath "gno.land/r/users" --func "Register" --gas-fee 1gnot --gas-wanted 2000000 --send "2000gnot" --args "" --args "YOUR_USERNAME" --args "" > unsigned.txgnokey sign mykey --txpath unsigned.tx --chainid testchain --number ACCOUNT_NUM --sequence SEQ_NUM> signed.txgnokey broadcast signed.tx --remote gno.land:36657
    

3\. 查看是否创建成功

[https://gno.land/r/users](https://gno.land/r/users) 在此能找到你的用户名，则创建成功

第一个任务(可能有奖励)
------------

在社交媒体上发表分享对项目的兴趣和看法，并将链接分享到链上

比如是我们的分享链接：[https://twitter.com/Nodestake\_top/status/1535970050003599360](https://twitter.com/Nodestake_top/status/1535970050003599360)

替换YOUR\_SHARE\_LINK为你的分享链接

    gnokey maketx call mykey --pkgpath "gno.land/r/boards" --func "CreateReply" --gas-fee 1gnot --gas-wanted 2000000 --send "" --broadcast true --chainid testchain --args "1" --args "8" --args "8" --args "YOUR_SHARE_LINK" --remote gno.land:36657
    

[https://gno.land/r/boards:gnolang/8](https://gno.land/r/boards:gnolang/8) 在此能看到你的分享，则表示成功。

Gno的项目才刚刚开始，我们会持续分享Gno的项目进程和教程，关注推特[@NodeStake\_top](https://twitter.com/Nodestake_top)。

Gno.land:
---------

Website：[https://gno.land/](https://gno.land/)

Twitter：[https://twitter.com/\_gnoland](https://twitter.com/_gnoland)

Discord：[https://discord.gg/XEuCZEFAY4](https://discord.gg/XEuCZEFAY4)

* * *

关注推特[@NodeStake\_top](https://twitter.com/Nodestake_top)，获取更多资讯

---

*Originally published on [NodeStake](https://paragraph.com/@nodestake/gno-land)*
