web3_clientVersion
Returns the current client version on Moonriver.
Parameters#
This method accepts no parameters.
Request#
{
"jsonrpc": "2.0",
"method": "web3_clientVersion",
"params": [],
"id": 1
}
Returns#
| Type | Description |
|---|---|
String | Client version string |
Code Examples#
- cURL
- JavaScript
curl -X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "web3_clientVersion",
"params": [],
"id": 1
}'
import { JsonRpcProvider } from 'ethers';
const provider = new JsonRpcProvider('');
const version = await provider.send('web3_clientVersion', []);
console.log('Client version:', version);