跳到主要内容

cfx_clientVersion

Return the client version as a string

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

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"