BSV blockchainBSV blockchain

getNetwork

POST/getNetwork

Retrieves the current network

Response

The current network

network"mainnet" | "testnet"

Invalid input

Internal server error

Request
curl -X POST "http://localhost:3321/getNetwork"
Response
{
  "network": "mainnet"
}