Build with xrpl.js· 1 of 4

Networks and faucets

Practice on Testnet or Devnet with free test XRP. Check which network you joined.

4 minMedium

Key points

  • Mainnet is real money. Testnet and Devnet use free, worthless XRP.
  • A faucet funds test accounts. Test networks can be reset.
  • Check network_id before you send: 0 Mainnet, 1 Testnet, 2 Devnet.

The lesson

  1. The XRP Ledger has more than one network. They run the same software, but their money never mixes.

    • is the real one. Its XRP has real value.
    • is for practice. Its XRP is free and worth nothing.
    • is for trying new features before they reach Mainnet.
  2. Test networks give out XRP from a , like a free sample counter. Ask, and a new account gets test XRP. Test networks can also be reset, so keep nothing there you need.

  3. is a JavaScript library that talks to these networks. You give it a server address. Point it at a Testnet server, and every mistake is free.

  4. Before sending anything, check where you are. Each network has an ID number. A program that checks it will never send real XRP by accident.

Check yourself3 questions
1. Where should a first program send its transactions?
2. Which network gets new features before Mainnet?
3. server_info shows network_id 1. Where are you?
Next lessonConnect and make a wallet