Connecting to the Sui Network

·

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:

Test Token Acquisition:

👉 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:


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

👉 Need help with tokens?

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

  1. Run:

    sui client
  2. Follow prompts to enter an RPC URL (e.g., https://fullnode.devnet.sui.io:443 for Devnet).
  3. Assign an environment alias (e.g., devnet).
  4. Select a key scheme (ed25519, secp256k1, or secp256r1).

Expected output:

Generated address: 0xb9c83a8b40d...
Recovery Phrase: [12-word mnemonic]

Managing RPC Endpoints

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?

Can I use Sui CLI without a network?

Yes, for local development via sui genesis.


👉 Ready to dive deeper? Explore advanced Sui network configurations.