web3_clientVersion
Returns the current client version on Avalanche C-Chain.
Parameters
This method accepts no parameters.
{
"jsonrpc": "2.0",
"method": "web3_clientVersion",
"params": [],
"id": 67
}
Returns
String
- The current client version.
Implementation Example
- cURL
- JavaScript
curl -X POST https://api-avalanche-mainnet-archive.n.dwellir.com/YOUR_API_KEY/ext/bc/C/rpc \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "web3_clientVersion",
"params": [],
"id": 67
}'
const response = await fetch('https://api-avalanche-mainnet-archive.n.dwellir.com/YOUR_API_KEY/ext/bc/C/rpc', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0',
method: 'web3_clientVersion',
params: [],
id: 67
})
});
const data = await response.json();
console.log(data.result);
Response Example
{
"id": 67,
"jsonrpc": "2.0",
"result": "avalanche/1.10.18"
}
Note: This shows the version of the Avalanche client software running on the node.
Need help? Contact our support team or check the Avalanche documentation.