<!--
{
  "availability" : [
    "*: -"
  ],
  "documentType" : "symbol",
  "framework" : "Bitcoin",
  "identifier" : "/documentation/Bitcoin/BitcoinConfig/testnet()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Bitcoin"
    ],
    "preciseIdentifier" : "s:7Bitcoin0A6ConfigVA2A7TestnetORszrlE7testnetACyAEGyFZ"
  },
  "title" : "testnet()"
}
-->

# testnet()

Creates a configuration for Bitcoin testnet3.

```
static func testnet() -> BitcoinConfig<Testnet>
```

## Discussion> Warning: testnet3 is deprecated in Bitcoin Core. Use `testnet4()` instead.