Links

web3_clientVersion

Returns the current client version.

Parameters

None

Returns

String - The current client version.

Example

Request

curl
TypeScript
curl https://api.blockvision.org/v1/<api key> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "web3_clientVersion",
"params": [],
"id": 1
}'
import { BlockVisionProvider, BvNetwork } from 'blockvision.js'
// Optional parameters, but default to eth-mainnet and default api-key.
const bv = new BlockVisionProvider(BvNetwork.ETH_MAINNET)
// Access BlockVision Enhanced API requests
bv.getClientVersion().then(console.log)

Result

{
"jsonrpc":"2.0",
"id":1,
"result":"erigon/2022.08.2/linux-amd64/go1.18.4"
}
Last modified 1mo ago