# getNetwork

_Returns the network._

## Type

```ts
;() => 'mainnet' | 'testnet' | 'regtest'
```

### Return Value

Returns a string encoding the network.

## Example

:::code source="../../../lib/test/lib/computer/get-network.test.ts" :::

<a href="https://github.com/bitcoin-computer/monorepo/blob/main/packages/lib/test/lib/computer/get-network.test.ts" target=_blank>Source</a>
