Connect to a Sui Network | Sui Documentation (2024)

Sui has Mainnet, Devnet, and Testnet networks available. You can use one of the test networks, Devnet or Testnet, to experiment with the version of Sui running on that network. You can also spin up a local Sui network for local development.

The Sui Testnet and Devnet networks consist of several validator nodes to validate each network's transactions. Clients send transactions and read requests via this endpoint: https://fullnode.<SUI-NETWORK-VERSION>.sui.io:443 using JSON-RPC.

You can request test SUI tokens through the Sui devnet-faucet and testnet-faucet Discord channels, depending on which version of the network you use. If connected to Localnet, use cURL to request tokens from your local faucet. The coins on these networks have no financial value. There is no faucet service for Mainnet.

See announcements about Sui in the #announcements Discord channel.

See the terms of service for using Sui networks.

info

Testnet and Devnet data persistence is not guaranteed. Devnet data is wiped regularly as part of scheduled software updates. The data on Testnet persists through the regular update process, but might be wiped when necessary. Testnet data wipes are announced ahead of time.

For more information about the release schedule of Sui networks, see Sui Network Release.

Sui CLI

Sui provides Sui command line interface (CLI) to interact with Sui networks:

  • Create and manage your private keys
  • Create example NFTs
  • Call and publish Move modules

Environment set up

First, Install Sui. After you install Sui, request SUI test tokens through Discord for the network you are using: Devnet or Testnet. If connected to Localnet, use cURL to request tokens from your local faucet.

To check whether Sui is already installed, run the following command:

which sui

If Sui is installed, the command returns the path to the Sui binary. If Sui is not installed, it returns sui not found.

See the Sui Releases page to view the changes in each Sui release.

Configure Sui client

If you previously ran sui genesis to create a local network, it created a Sui client configuration file (client.yaml) that connects to localhost at http://0.0.0.0:9000. See Connect to a custom RPC endpoint to update the client.yaml file.

To connect the Sui client to a network, run the following command:

sui client

If you receive the sui-client help output in the console, you already have a client.yaml file. See Connect to a custom RPC endpoint to add a new environment alias or to switch the currently active network.

The first time you start Sui client without having a client.yaml file, the console displays the following message:

Config file ["<PATH-TO-FILE>/client.yaml"] doesn't exist, do you want to connect to a Sui Full node server [y/N]?

Press y and then press Enter. The process then requests the RPC server URL:

Sui Full node server URL (Defaults to Sui Testnet if not specified) :

Press Enter to connect to Sui Testnet. To use a custom RPC server, Sui Devnet, or Sui Mainnet, enter the URL to the correct RPC endpoint and then press Enter.

If you enter a URL, the process prompts for an alias for the environment:

Environment alias for [<URL-ENTERED>] :

Type an alias name and press Enter.

Select key scheme to generate keypair (0 for ed25519, 1 for secp256k1, 2 for secp256r1):

Press 0, 1, or 2 to select a key scheme and the press Enter.

Sui returns a message similar to the following (depending on the key scheme you selected) that includes the address and 12-word recovery phrase for the address:

Generated new keypair for address with scheme "ed25519" [0xb9c83a8b40d3263c9ba40d551514fbac1f8c12e98a4005a0dac072d3549c2442]
Secret Recovery Phrase : [cap wheat many line human lazy few solid bored proud speed grocery]

Connect to a custom RPC endpoint

If you previously used sui genesis with the force option (-f or --force), your client.yaml file already includes two RPC endpoints: localnet at http://0.0.0.0:9000 and devnet at https://fullnode.devnet.sui.io:443. You can view the defined environments with the sui client envs command, and switch between them with the sui client switch command.

If you previously installed a Sui client that connected to a Sui network, or created a local network, you can modify your existing client.yaml file to change the configured RPC endpoint. The sui client commands that relate to environments read from and write to the client.yaml file.

To check currently available environment aliases, run the following command:

sui client envs

The command outputs the available environment aliases, with (active) denoting the currently active network.

localnet => http://0.0.0.0:9000 (active)
devnet => https://fullnode.devnet.sui.io:443

To add a new alias for a custom RPC endpoint, run the following command. Replace values in < > with values for your installation:

sui client new-env --alias <ALIAS> --rpc <RPC-SERVER-URL>

To switch the active network, run the following command:

sui client switch --env <ALIAS>

If you encounter an issue, delete the Sui configuration directory (~/.sui/sui_config) and reinstall the latest Sui binaries.

Connect to a Sui Network | Sui Documentation (2024)
Top Articles
How Much Rental Income Can Be Used to Qualify for a Mortgage?
How to Get Around HOA Short-Term Rental Restrictions? | Airbtics | Airbnb Analytics
Mybranch Becu
Bild Poster Ikea
Angela Babicz Leak
Nco Leadership Center Of Excellence
Valley Fair Tickets Costco
Phone Number For Walmart Automotive Department
Fully Enclosed IP20 Interface Modules To Ensure Safety In Industrial Environment
Crossed Eyes (Strabismus): Symptoms, Causes, and Diagnosis
Vanadium Conan Exiles
Space Engineers Projector Orientation
Epaper Pudari
2135 Royalton Road Columbia Station Oh 44028
Newgate Honda
R/Altfeet
Indiana Immediate Care.webpay.md
Trini Sandwich Crossword Clue
Chris Hipkins Fue Juramentado Como El Nuevo Primer Ministro De...
Google Feud Unblocked 6969
Finger Lakes Ny Craigslist
[Birthday Column] Celebrating Sarada's Birthday on 3/31! Looking Back on the Successor to the Uchiha Legacy Who Dreams of Becoming Hokage! | NARUTO OFFICIAL SITE (NARUTO & BORUTO)
Bitlife Tyrone's
Busby, FM - Demu 1-3 - The Demu Trilogy - PDF Free Download
Overton Funeral Home Waterloo Iowa
Jellyfin Ps5
Jalapeno Grill Ponca City Menu
Swgoh Blind Characters
Timeforce Choctaw
Poochies Liquor Store
Lovindabooty
Danielle Moodie-Mills Net Worth
Uno Fall 2023 Calendar
Nurofen 400mg Tabletten (24 stuks) | De Online Drogist
Why Are The French So Google Feud Answers
Roadtoutopiasweepstakes.con
What Time Does Walmart Auto Center Open
Morlan Chevrolet Sikeston
THE 10 BEST Yoga Retreats in Konstanz for September 2024
Metro By T Mobile Sign In
How to Draw a Sailboat: 7 Steps (with Pictures) - wikiHow
Stanford Medicine scientists pinpoint COVID-19 virus’s entry and exit ports inside our noses
Ucsc Sip 2023 College Confidential
Mbfs Com Login
Noh Buddy
Unlock The Secrets Of "Skip The Game" Greensboro North Carolina
Online College Scholarships | Strayer University
Shiftselect Carolinas
Bama Rush Is Back! Here Are the 15 Most Outrageous Sorority Houses on the Row
Cvs Minute Clinic Women's Services
Vrca File Converter
Latest Posts
Article information

Author: Neely Ledner

Last Updated:

Views: 5692

Rating: 4.1 / 5 (42 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Neely Ledner

Birthday: 1998-06-09

Address: 443 Barrows Terrace, New Jodyberg, CO 57462-5329

Phone: +2433516856029

Job: Central Legal Facilitator

Hobby: Backpacking, Jogging, Magic, Driving, Macrame, Embroidery, Foraging

Introduction: My name is Neely Ledner, I am a bright, determined, beautiful, adventurous, adventurous, spotless, calm person who loves writing and wants to share my knowledge and understanding with you.