web3_clientVersion
Returns the current client version.
Parameters
This method accepts no parameters.
{
"jsonrpc": "2.0",
"method": "web3_clientVersion",
"params": [],
"id": 1
}
Returns
String
- The current client version.
Implementation Examples
- cURL
- JavaScript
curl -X POST https://api-tron-jsonrpc.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "web3_clientVersion",
"params": [],
"id": 1
}'
const clientVersion = await provider.send('web3_clientVersion', []);
console.log('Client version:', clientVersion);