arc_getVersion - Arc
arc_getVersion. Returns build and version information for the node's execution client.
arc_getVersion - arc [Value: 20CU]
Returns build and version information for the node's execution layer, including the git tag, commit hash, and cargo version
Use cases
- Confirm which arc-node release a node is running before debugging unexpected behavior
- Verify a fix or new method has landed on a given node before relying on it
- Include node build metadata in health checks or support requests
Constraints
- Part of Arc's custom arc_* namespace, not the standard Ethereum JSON-RPC surface
- Takes no parameters
- rpc_modules does not list arc, since the namespace is registered outside the standard module registry; the method still works
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl https://arc-testnet.drpc.org \
-X POST \
-H "Content-Type: application/json" \
-d '{"method":"arc_getVersion",
"params":[],
"id":1,
"jsonrpc":"2.0"}'
Response
200
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"git_version": "v0.7.2",
"git_commit": "a85368c0b0a7924e4c74035d195f96deb0291622",
"git_short_hash": "a85368c0",
"cargo_version": "v0.7.2 (a85368c0)"
}
}Request params
idinteger
jsonrpcstring
methodstring
Response
200
Build and version information for the node's execution layerResponse params
object
idinteger
jsonrpcstring
resultobject
The node's build information.
object
git_versionstring
The git tag of the release, or a short commit hash for untagged builds.
git_commitstring
The full git commit hash the binary was built from.
git_short_hashstring
The abbreviated commit hash.
cargo_versionstring
The cargo package version, with the short commit appended.