配置Sui学习环境

  • sycute
  • 更新于 2024-03-19 15:45
  • 阅读 259

Ubuntu 配置 Sui 开发环境

1. 安装 Sui 及配置

操作系统:Ubuntu 22.04

1.1 安装 Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup update stable

1.2 安装 Sui

sudo apt-get update
sudo apt-get install curl git-all cmake gcc libssl-dev pkg-config libclang-dev libpq-dev build-essential

安装 sui

cargo install --locked --git https://github.com/MystenLabs/sui.git --branch testnet sui

2. 安装 move 插件

在 intellij 插件市场搜索安装 Sui Move Lanaguage,点击安装即可

image.png

3. 添加主网和测试网

sui client new-env --alias testnet --rpc https://fullnode.testnet.sui.io:443
sui client new-env --alias mainnet --rpc https://sui-mainnet.nodeinfra.com:443

// 切换网络
sui client switch --env testnet

4. 测试网水龙头 token

curl http://getsui.com/address/<ADDRESS>

5. 钱包相关命令

// 导入钱包
sui keytool import <PATH>
// 切换address
sui client switch --address <ADDRESS>
// 当前保存的密钥
sui client addresses
// 当前启用的密钥
sui client active-address

星航计划 QQ群:79489587

点赞 1
收藏 0
分享
本文参与登链社区写作激励计划 ,好文好收益,欢迎正在阅读的你也加入。

0 条评论

请先 登录 后评论
sycute
sycute
0x80d6...FdC9
电报联系 @luosanzhang