net_version

Returns the current network id.

Parameters

none

Returns

String - The current network id.

  • "39": Unicorn Ultra Mainnet

  • "2484": Unicorn Ultra Testnet Nebulas

Example

Request

curl https://rpc-mainnet.u2u.xyz \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"net_version","params":[],"id":67}'

Result

{
  "id":67,
  "jsonrpc": "2.0",
  "result": "39"
}

Last updated