# getNetwork

> For the complete documentation index, see [llms.txt](https://bsvblockchain.com/docs/llms.txt).

**POST** `/getNetwork`

Base URL: `http://localhost:3321`

Retrieves the current network

## Responses

### 200

The current network

- `network` ("mainnet" | "testnet")

Example:

```json
{
  "network": "mainnet"
}
```

### 400

Invalid input

### 500

Internal server error