Prerequisites
Before we begin let’s make sure your local environment is setup with the proper prerequisites.
Node Environment
- node.js (v18.16.0+) (download)
- pnpm (after installing node:Â
npm install --global pnpm
)
Move Environment
- Sui (Latest Verison) (install)
Finally, Verify that the binary was installed successfully.
sui --version # must be >= 1.38
Configure Sui Client Environment
After installing the Sui CLI, you need to configure the client environments. Run the following commands to add different network environments:
Localnet
sui client new-env --alias localnet --rpc http://127.0.0.1:9000
Devnet
sui client new-env --alias devnet --rpc https://fullnode.devnet.sui.io:443/
Testnet
sui client new-env --alias testnet --rpc https://fullnode.testnet.sui.io:443/
Mainnet
sui client new-env --alias mainnet --rpc https://fullnode.mainnet.sui.io:443/
These commands will set up your Sui client to interact with different network environments. You can switch between environments using sui client switch --env <environment-alias>
.