jiOnederfull / 2023-sui-bh-seoul-workshop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2023-sui-bh-seoul-workshop

Install Prerequisites

  1. Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>
source "$HOME/.cargo/env"
rustup update stable
  1. Brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • Press RETURN/ENTER
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> {your root path}/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
  1. cURL / CMake / Git CLI
brew install curl cmake git

Install Sui Binaries - Devnet

cargo install --locked --git https://github.com/MystenLabs/sui.git --branch devnet sui
  • 해당 레포 git clone: git clone https://github.com/jiOnederfull/2023-sui-bh-seoul-workshop
mv sui_devnet_linux ~/.cargo/bin/sui
mv sui_devnet_mac ~/.cargo/bin/sui

Environment Set up

which sui
  • The command installs Sui components in the ~/.cargo/bin folder.

Confirm the Installation

sui

Configure Sui Client

sui client
  • Enter y
  • Enter
  • Enter 0 for selecting ed25519

Generated new keypair for address with scheme "ed25519" [0xb9c83a8b40d3263c9ba40d551514fbac1f8c12e98a4005a0dac072d3549c2442]

Secret Recovery Phrase : [cap wheat many line human lazy few solid bored proud speed grocery]

cd ~/.sui
ls -al
cd sui_config
cat client.yaml
cat sui.keystore

Connect to a custom RPC endpoint

sui client envs
sui client new-env --alias ATN_Mainnet --rpc https://sui-mainnet-rpc.allthatnode.com:443
sui client switch --env ATN_Mainnet

Request Test Tokens

sui client active-address
!faucet <YOUR-CLIENT-ADDRESS>

Create a New Address

sui client new-address ed25519
sui client addresses
sui client switch --address <address>

About