API Reference

net_version - DogeOS

Returns the current network id.

Returns the network ID of the chain the client is connected to.

For transaction signing, it is recommended to use eth_chainId instead of net_version to prevent replay attacks (EIP-155).

PARAMETERS

None

REQUEST

{
    "jsonrpc":"2.0",
    "method":"net_version",
    "params":[],
    "id":67
}

RESPONSE

Result - string, the current network ID.

  • "0x5fdaf3": The network ID for DogeOS Testnet.
{
	"id": 67,
	"jsonrpc": "2.0",
	"result": "0x5fdaf3"
}