web3_clientversion

Klaytn RPC

How to use it

// yarn add @tatumio/tatum
import { TatumSDK, Klaytn, Network } from '@tatumio/tatum'

const tatum = await TatumSDK.init<Klaytn>({network: Network.KLAYTN})

const version = await tatum.rpc.clientVersion()

await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs

Overview

web3_clientVersion is a method of the JSON-RPC API that allows the client to retrieve the current version of the client software being used by the node.

This method is read-only and does not require authentication. The web3_clientVersion method can be used by developers to confirm the version of the client software they are using and ensure that it is compatible with their application.

Parameters

This method has no parameters. It only retrieves the current version of the client software.

Return Object

The web3_clientVersion method returns a string representing the version of the client software being used. The string includes the client name, version number, and build information.

  • String - Version string of the client software being used.

Example Request

JSON Request

{
  "jsonrpc": "2.0",
  "method": "web3_clientVersion",
  "params": [],
  "id": 1
}

Example Response

JSON Response

{
    "jsonrpc": "2.0",
    "id": 67,
    "result": "v0.9.0"
}