theta.GetVersion

This API returns the version of the blockchain software.

Parameters

None

Result

Result Fields

KeyTypeDetail
versionStringthe version number
git_hashStringthe git commit hash of the code base
timestampStringthe build timestamp

Example

Request

curl <your-endpoint> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"theta.GetVersion","params": [],"id":1}'

Return

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "version": "4.0.0",
        "git_hash": "7da8140d070e1d7b336eb975b3e5edce17ab508b",
        "timestamp": "Tue Feb 14 03:03:28 UTC 2023"
    }
}
Language
Click Try It! to start a request and see the response here!