For the complete documentation index, see llms.txt. This page is also available as Markdown.

Mainnet and Testnets

Stacks has both a mainnet and a testnet for different purposes. Mainnet and testnet are two completely different public networks and tokens cannot be transferred between one or the other.

Tech Specs for Mainnet and Testnet

Mainnet
Testnet

Chain ID

1

2147483648

Transaction Version

0

128

Magic Bytes

X2

T2

Explorer

https://explorer.hiro.so/

Stacks API Base URL

https://api.hiro.so

Address Format / Version

SP3B108...2DNJA0 / 22

ST3B108P...EQEZY5 / 26

Multisig Format / Version

SM3RWH...5X9DXM / 20

SN8NKFP...2NAQJA / 21

Genesis Block

Block #1

Block #1

Mainnet

Stacks mainnet is directly anchored to the Bitcoin mainnet and its the network where tokens have actual monetary worth. This is the production network and should be treated as such.

Testnet

The Stacks testnet serves as a live public sandbox for developers, allowing them to build, test, and iterate on apps and smart contracts in an environment that mimics the mainnet. It provides a risk-free space to experiment with changes or new features before deploying them on the Stacks mainnet, ensuring that everything functions correctly without the risk of real financial loss.

Testnet Faucets

Testnet faucets provide you with mock Stacks (STX) tokens to test with. These testnet STX have no value and are not the same as STX on mainnet. There are a couple of different options for getting testnet STX.

You can get testnet STX from the Platform, which is the recommended way.

To get STX tokens from within the Platform, navigate to the "Faucet" tab at the top. You can then choose either testnet STX or sBTC, and then paste in your desired testnet STX address to receive.

Using the faucet provided by the Explorer Sandbox is another option.

You'll first need to connect your wallet to the Explorer Sandbox and hit 'Request STX'. Be sure your wallet is on the testnet network before requesting.

Alternatively, you can use the LearnWeb3 faucet.

Last updated

Was this helpful?