cURL
curl --request POST \ --url https://{network}.s.chainbase.online/v1/{api-key} \ --header 'Content-Type: application/json' \ --data '{ "id": 1, "jsonrpc": "2.0", "method": "net_version", "params": [] }'
{ "id": 1, "jsonrpc": "2.0", "result": "<string>" }
Returns the current network id.
Parameters
None
Returns
STRING
"demo"
Successful Response
The response is of type object.
object