# Testnet

## Getting Started with Bitcoin testnet

This guide will help you in setting up a BitcoinSV node which connects to the *testnet*.

### What is testnet?

Testnet is a public test network used for general testing. It is typically used to test software before it is released onto *mainnet*. As *testnet* is public and unmanaged, software on *testnet* may not be 100% stable. Transactions per second and block difficulty are low.

System requirements for running a Testnet node: [system-requirements](https://docs.bsvblockchain.org/network-topology/nodes/sv-node/system-requirements "mention")

### QuickStart Instructions

#### Step 1:

Install SV Node according to the installation guide: [..](https://docs.bsvblockchain.org/network-topology/nodes/sv-node/installation/sv-node "mention")

#### Step 2:

Configure bitcoind to connect to the *testnet* and not Mainnet, as well as setting mandatory parameters. Make the following changes to your `bitcoin.conf`

```editorconfig
testnet=1
maxstackmemoryusageconsensus=2000000000
excessiveblocksize=10000000000
minminingtxfee=0.00000001
```

#### Step 3:

If you wish to add any other custom configurations to your Bitcoin SV node you can appended them to the bitcoin.conf file with the editor of your choice.

#### Step 4:

Start the bitcoind process. If you have been following the installation guide you can use systemd

```bash
sudo systemctl start bitcoind.service
```

If this is the first time you have started the node, it may take several hours or even days as the node downloads blocks and checks that they have not been tampered with. In this case, it may make sense to run the node in foreground to see status messages.

If this is not the first time you have run the node, it should start up quickly and it may make sense to run the node in the background.

#### Step 5:

Check the status of the node and the bitcoind process. Type the following at the command line:

```bash
[bitcoin-sv installation directory]/bin/bitcoin-cli getinfo
```

This should generate an output similar to

```json
{
  "version": 101001600,
  "protocolversion": 70016,
  "walletversion": 160300,
  "balance": 0.00000000,
  "initcomplete": true,
  "blocks": 1595779,
  "timeoffset": 0,
  "connections": 12,
  "proxy": "",
  "difficulty": 1,
  "testnet": true,
  "stn": false,
  "keypoololdest": 1705486144,
  "keypoolsize": 2000,
  "paytxfee": 0.00000000,
  "relayfee": 0.00000000,
  "errors": "",
  "maxblocksize": 10000000000,
  "maxminedblocksize": 4000000000,
  "maxstackmemoryusagepolicy": 100000000,
  "maxstackmemoryusageconsensus": 100000000
}
```

### Funding

If you wish to use *testnet* for testing, you will need to obtain unspent coins. A number of faucets are available:

* <https://scrypt.io/faucet>
* <https://testnet.satoshisvision.network>
* <https://witnessonchain.com/faucet/tbsv>
* <https://testnet.help/en/bsvfaucet/testnet>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bsvblockchain.org/network-topology/nodes/sv-node/installation/sv-node/network-environments/testnet.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
