Sui offers three main networks for development and testing: Mainnet, Devnet, and Testnet. You can use either Devnet or Testnet to experiment with Sui's features before deploying on Mainnet. Additionally, you can set up a local Sui network for offline development.
Overview of Sui Networks
Sui Testnet and Devnet Features:
- Four validator nodes operated by Mysten Labs.
- Public JSON-RPC endpoint:
https://fullnode.devnet.sui.io:443
for transactions and queries. - Sui Explorer: A blockchain explorer to track transaction history.
Test Token Acquisition:
- Devnet tokens: Request via Discord faucet.
- Testnet tokens: Request via Testnet Discord.
- Localnet tokens: Use
curl
with your local faucet.
👉 Explore Sui token distribution for more details.
Note: Test tokens have no monetary value. Mainnet does not provide a faucet service.
For announcements, check the #announcements Discord channel. Review Sui's Terms of Service before use.
Tools for Sui Network Interaction
Sui provides robust tools to interact with its ecosystem:
- Manage private keys.
- Create NFTs.
- Deploy Move modules.
- Sui Explorer: Monitor transactions and objects.
Environment Setup
Step 1: Install Sui
Follow the installation guide. Verify installation by running:
which sui
A valid path confirms successful installation.
Step 2: Request Test Tokens
- Devnet/Testnet: Use Discord faucets linked above.
- Localnet: Access via local faucet.
Track updates on Sui Releases.
Configuring the Sui Client
Default Configuration
Running sui genesis
generates client.yaml
, connecting to http://0.0.0.0:9000
(Localnet). Modify this file to switch networks.
Connecting to a Network
Run:
sui client
- Follow prompts to enter an RPC URL (e.g.,
https://fullnode.devnet.sui.io:443
for Devnet). - Assign an environment alias (e.g.,
devnet
). - Select a key scheme (ed25519, secp256k1, or secp256r1).
Expected output:
Generated address: 0xb9c83a8b40d...
Recovery Phrase: [12-word mnemonic]
Managing RPC Endpoints
List environments:
sui client envs
Add a custom endpoint:
sui client new-env --alias <name> --rpc <url>
Switch networks:
sui client switch --env <alias>
Troubleshooting: Delete ~/.sui/sui_config
and reinstall Sui binaries if errors occur.
FAQs
How do I get Sui test tokens?
Request tokens via Discord faucets for Devnet/Testnet or use the local faucet for Localnet.
What’s the difference between Devnet and Testnet?
- Devnet: Less stable, frequent updates.
- Testnet: More stable, pre-release testing.
Can I use Sui CLI without a network?
Yes, for local development via sui genesis
.
👉 Ready to dive deeper? Explore advanced Sui network configurations.