net_version

Returns the current network id.

Parameters

none

Returns

String - The current network id.

"1": Ethereum Mainnet "2": Morden Testnet (deprecated) "3": Ropsten Testnet "4": Rinkeby Testnet "42": Kovan Testnet

Example

Request

curl https://rpc.<REGION>.gateway.fm/v4/gnosis/non-archival/mainnet \
-X POST \
-H "Content-Type: application/json" \
-d '{ "id": 89, "jsonrpc": "2.0", "method": "net_version", "params": []}'

Result

{
    "jsonrpc": "2.0",
    "id": 89,
    "result": "100"
}

Last updated