cfx_clientVersion
Return the client version as a string
- CURL
curl --request POST \
--url https://main.confluxrpc.com \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"params": [],
"method": "cfx_clientVersion"
}'
Result
Schema
type : string
Pattern :
^.*$
Example
- cfx_clientVersion
Request
curl -X POST --data \
'{
"jsonrpc": "2.0",
"id": 1,
"method": "cfx_clientVersion",
"params": []
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
"conflux-rust-2.0.1-testnet"