net_version

Returns the current network ID.

Parameters

None

Returns

A string representing the current network ID.

Example

Request

curl https://rpc.testnet.tryradi.us/<YOUR-RPC-ENDPOINT> \
  -X POST \
  -H "Content-Type: application/json" \
  -d '
{
  "jsonrpc": "2.0",
  "method": "net_version",
  "params": [],
  "id": 1
}
'

Response

{
  "jsonrpc": "2.0",
  "result": "1",
  "id": 1
}

Last updated

Was this helpful?