---
title: "Retrieves the current network"
method: POST
path: "/getNetwork"
tags: ["HTTPWalletJSON"]
---

# Retrieves the current network

`POST /getNetwork`

## Response `200`

The current network

- object
  - `network` 'mainnet' | 'testnet'

## Other responses

- `400` — Invalid input
- `500` — Internal server error

---

[API](https://skmtc.dev/bsv-blockchain/apis/wallet-json-api.md) · [All operations](https://skmtc.dev/bsv-blockchain/apis/wallet-json-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bsv-blockchain/wallet-json-api/revisions/4b04a6edb128/schema)
