-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Testnet: Public
- Overview
- Differences between Testnet and Mainnet
- Nodes
- Public Testnet Endpoints
- Connecting Local EOSD with Public Testnet
- Connecting Local EOSC with Public Testnet
- Testnet Accounts
- External Links
The Public Testnet exists to support developers and testers who are already working with their own standalone (private) testnet and who want to test their code on a public net, but without the issues and restrictions of working on a public production net ("mainnet").
The Public Testnet allows developers to work with free test tokens, provided during signup. Access the signup page here.
There are several differences between the Public Testnet and the public Mainnet. As of this writing, they include:
- Existence. The public mainnet doesn't exist yet, and the public testnet does.
-
Genesis block. The mainnet genesis block is different from the testnet genesis block. The Testnet genesis block includes a faucet account and several "initx" accounts (inita - initu) used by the core development team during testing. At least some of these
initx
accounts are also present in the provided genesis block of standalone private testnets. - Resets. The Testnet is subject to resets as needed to support testing.
- Versions. The Testnet can actually include multiple testnets with different addresses and different reset cycles, depending on the needs and desires of the development community.
- Hosting. The Testnet is currently configured such that block-producing nodes will only be run on hosts set up and operated by the core developers. The Mainnet's block producing nodes will run on hosts selected by a vote of the token holders.
The Testnet consists of block-producing nodes and non-producing nodes.
There are currently two Public Testnet.
- Testnet1
- HTTP Endpoint: testnet1.eos.io
- P2P Endpoint: t1p2pXX.eos.io where XX is ranging from 01-21
- Web Wallet Endpoint: t1wallet.eos.io, t1api.eos.io, t1readonly.eos.io
- Testnet2
- HTTP Endpoint: testnet2.eos.io
- P2P Endpoint: t2p2pXX.eos.io where XX is ranging from 01-21
- Web Wallet Endpoint: t2wallet.eos.io, t2api.eos.io, t2readonly.eos.io
You can test the connection either using curl
$ curl testnet1.eos.io/v1/chain/get_info
In order to connect your local eosd to the public testnet, ensure your machine's clock is accurate and you need to modify your config.ini
as the following:
- Add
p2p-peer-address
field with one of the valid public testnet p2p endpoint
p2p-peer-address = ${p2p_endpoint}
- Modify
block-interval-seconds
to match the testnet, which is 2. Otherwise, your local eosd node won't be able to sync with the public testnet.
block-interval-seconds = 2
You can connect your local eosc with public testnet by using the http endpoint as the hostname and port 80:
$ eosc -H ${http_endpoint} -p 80 ${options} ${subcommand}
You're golden, instructions below
- An
eos-walletd
andeosc
binary from recenteosd
build, see Local Environment - Connect to Public Testnet
-
Import your private key with
eosc
- Find your account name(s) assigned in genesis by entering the ETH address or EOS Public Key you believe is included in the snapshot into the Account Name Lookup tool
If you do not have a genesis allocation, please apply for an account through the faucet
Online test wallets you can use to help you with development:
- name [link]
Initial tokens for testing (provided by a "faucet") are given to you when you sign up for a Public Testnet account. You can also request tokens from other developers, and give yours to them. When done with testing, please return your tokens to the Testnet faucet account using the instructions here [link].