Skip to main content

Networks

Stellar has three networks: the public network (Mainnet, also called Pubnet or the Public Network), the test network (Testnet), and a dev network (Futurenet). Mainnet is the main network used by applications in production. It connects to real financial rails and requires XLM to cover minimum balances, transaction fees, and rent. The Testnet is a smaller, free-to-use network maintained by SDF that functions like the Mainnet but doesn’t connect to real money. It has a built-in testnet XLM faucet (called Friendbot), and it resets on a regular cadence, so it's the best place for developers to test applications when they need a stable environment that mirrors Mainnet functionality. Futurenet is a dev network you can use to test more bleeding edge features that also has access to its own Friendbot. It resets whenever a reset is necessary, so it's not as predictable as Testnet, but it is where new features may be introduced before the are implemented in stable releases.

Stats: Mainnet versus Testnet versus Futurenet

Mainnet

  • Validator nodes are run by the public
  • SDF offers free Horizon Testnet and Futurenet Instances to interact with the Testnet and Futurenet. The ecosystem has Horizon providers whom offer instances for Testnet and Mainnet. You can run your own Horizon or use an instance offered by an infrastructure provider.
  • You need to fund your account with XLM from another account
  • Mainnet is limited to 1,000 operations per ledger and will be limited to a maximum of 100 smart contract transactions per ledger (the precise amount of smart contract txs per ledger can vary greatly depending on transaction resource limits).
    • See more detailed smart contract network settings in the section on Fees and Metering.
  • No publicly available RPC, see RPC service providers here

Testnet

  • SDF runs three core validator nodes
  • SDF offers a free Horizon instance you can use to interact with the Testnet
  • Friendbot is a faucet you can use for free Testnet XLM
  • Testnet is limited to 100 operations per ledger and one smart contract transaction per ledger
  • SDF offers free RPC endpoints, more information here

Futurenet

  • SDF runs core validator nodes
  • SDF offers a free Horizon instance you can use to interact with the Futurenet
  • Friendbot is a faucet you can use for free Futurenet XLM
  • Futurenet is limited to 100 operations per ledger and one smart contract transaction per ledger
  • SDF offers free RPC endpoints, more information here

Friendbot

Friendbot is a bot that funds accounts with fake XLM on Testnet or Futurenet. You can request XLM from Friendbot using the Stellar Lab or with various SDKs. Requests to Friendbot are rate limited, so use it wisely. Friendbot provides 10,000 fake XLM when funding a new account.

If you are creating multiple accounts, you can fund your first account with Friendbot and then use that first account to fund your subsequent accounts using the Create Account operation.

Testnet and Futurenet data reset

Testnet and Futurenet are reset periodically to the genesis ledger to declutter the network, remove spam, reduce the time needed to catch up on the latest ledger, and help maintain the system. Resets clear all ledger entries (accounts, trustlines, offers, smart contract data, etc.), transactions, and historical data from Stellar Core, Horizon, and the Stellar RPC- which is why developers should not rely on the persistence of accounts or the state of any balances when using Testnet or Futurenet.

Futurenet resets are on a less regular cadence than Testnet resets and don't have a set schedule.

Testnet resets typically happen once per quarter at 17:00 UTC and are announced at least two weeks in advance on the Stellar Dashboard and through several developer community channels.

Here are the scheduled 2024 dates:

  • February 6, 2024
  • June 11, 2024
  • September 17, 2024
  • December 10, 2024

If you run a Testnet or Futurenet Horizon instance, you need to re-join and re-sync to the network after a reset. Check out how to do that here: Testnet Reset.

Check out this How-To Guide on automating Testnet and Futurenet reset data.

Test data automation

It is recommended that you have testing infrastructure that can repopulate the Testnet and Futurenet with useful data after a reset. This will make testing more reliable and will help you scale your testing infrastructure to a private network if you choose to do so. For example, you may want to:

  • Generate issuers of assets for testing the development of a wallet;
  • Generate orders on the order book (both current and historical) for testing the development of a trading client;
  • Recreate liquidity pools;
  • Redeploy smart contracts.

If you maintain an application, you should think about creating a data set that is representative enough to test your primary use cases, and allow for robust testing even when Testnet or Futurenet are not available.

A script can automate this entire process by creating an account with Friendbot and submitting a set of transactions that are predefined as a part of your testing infrastructure.

What Testnet and Futurenet should and should not be used for

Testnet and Futurenet are good for

  • Creating test accounts (with funding from Friendbot);
  • Developing applications and contracts and exploring tutorials on Stellar without the potential to lose any assets;
  • Testing existing applications against new releases or release candidates of Stellar Core, Horizon, and the Stellar RPC;
  • Performing data analysis on a smaller, non-trivial data set compared to the Mainnet.

Testnet and Futurenet are bad for

  • Load and stress testing;
  • High availability test infrastructure- SDF does not guarantee Testnet availability;
  • Long-term storage of data on the network since the network resets periodically;
  • A testing infrastructure that requires more control over the test environment, such as:
    • The ability to control the data reset frequency;
    • The need to secure private or sensitive data (before launching on the Mainnet). You can always run your own test network for use cases that don’t work well with SDF’s Testnet.

Moving your project from Testnet or Futurenet to production

Mainnet, Testnet, and Futurenet each have their own unique passphrase, which is used to validate signatures on a given transaction.

The current passphrases for the Stellar Mainnet, Testnet, and Futurenet are:

Mainnet (Pubnet): Public Global Stellar Network ; September 2015

Testnet: Test SDF Network ; September 2015

Futurenet: Test SDF Future Network ; October 2022

For applications that don’t rely on the state of the network (such as specific accounts needing to exist), you move to production by changing the network passphrase and ensuring your Horizon instance is connected to Mainnet.

If you’ve been running a Stellar Core or Horizon instance against the Testnet and want to switch to production, changing the passphrase will require both respective databases to be completely reinitialized. If you run your own RPC on Testnet or Futurenet, you may want to use an RPC service when you move to Mainnet. Check out the RPC service providers here.

To learn more about network passphrases, see our Network Passphrase Encyclopedia Entry