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

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

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
Get started
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"}'
Copy
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)"
  }
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
ParametersThis method does not accept any parameters.

Response

200
Build and version information for the node's execution layer

Response 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.