net_version

Return the current klaytn protocol version.

NOTE: This API is effective after Klaytn v1.8.0

📘

Supported on Klaytn (mainnet) only.

Parameters

Request

None

Result

TypeDescription
QUANTITYThe integer of the klaytn protocol version.
- "1001": Klaytn Baobab testnet.
- "8217": Klaytn Cypress mainnet.

API Endpoint

The format of a Klaytn API endpoint is
https://open-platform.nodereal.io/{{apiKey}}/klaytn/

Here is an example:
https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/klaytn/

Example

// Request
curl https://open-platform.nodereal.io/{{apiKey}}/klaytn/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"net_version","params":[],"id":67}' 

// Result
{
    "jsonrpc":"2.0",
    "id":67,
    "result":"1001"
}