Request Gas tokens from Faucet
The Sui faucet is a useful tool where Sui developers can obtain free test SUI tokens to deploy and interact with their programs on Sui's Devnet and Testnet.
You can request a test token via:
prerequisites#
To request tokens from the faucet, you must have a wallet address that can receive SUI tokens. You can generate addresses through the Sui CLI tool or Sui wallet.
1. Apply for test tokens through Discord#
Add dissonance. If you try to join a Sui Discord channel using a newly created Discord account, you may need to wait a few days for verification.
Request a test SUI token in the Sui #devnet-faucet or #testnet-faucet Discord channel. Please note that the Testnet faucet is only available when Testnet is online. Send the following message to the channel using your customer address: !faucet
2. Apply for test tokens through wallet#
You can request a test token in the Sui wallet.
3. Request test token via cURL#
Use the following cURL command to request the token directly from the faucet server:
curl --location --request POST 'https://faucet.devnet.sui.io/gas' \ --header 'Content-Type: application/json' \ --data-raw '{ "FixedAmountRequest": { "recipient": "" } }'
Replace with 'https://faucet.devnet.sui.io/gas' when using local network. http://127.0.0.1:5003/gas
4. Request a test token through TypeScript SDK#
You can also access the faucet through TS-SDK.
import { JsonRpcProvider, devnetConnection } from '@mysten/sui.js'; // connect to Devnet const provider = new JsonRpcProvider(devnetConnection); // get tokens from the Devnet faucet server await provider.requestSuiFromFaucet( '' );