> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# arc_getVersion | Arc

> Arc API method that returns the build information for the node's execution layer, including the git tag, commit hash, and cargo version. Use it on Arc via Chainstack.

Arc API method that returns the build information for the node's execution layer. Use it to confirm which [arc-node](https://github.com/circlefin/arc-node) release a node is running, for example when a fix or a new method landed in a specific version.

`arc_getVersion` belongs to the custom `arc_*` namespace, which Arc adds on top of the standard Reth surface.

<Note>
  `rpc_modules` does not list `arc` in its response, because the namespace is registered outside the standard module registry. The method works regardless — do not use `rpc_modules` to decide whether it is available.
</Note>

## Parameters

None.

## Response

* `git_version` — the git tag of the release, or a short commit hash for untagged builds.
* `git_commit` — the full git commit hash the binary was built from.
* `git_short_hash` — the abbreviated commit hash.
* `cargo_version` — the cargo package version, with the short commit appended.

## `arc_getVersion` code examples

<CodeGroup>
  ```javascript ethers.js theme={"system"}
  const { JsonRpcProvider } = require("ethers");

  const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");

  async function call() {
    const result = await provider.send("arc_getVersion", []);
    console.log(result);
  }

  call();
  ```

  ```python web3.py theme={"system"}
  from web3 import Web3

  node_url = "CHAINSTACK_NODE_URL"
  web3 = Web3(Web3.HTTPProvider(node_url))

  result = web3.provider.make_request("arc_getVersion", [])
  print(result)
  ```

  ```shell cURL theme={"system"}
  curl -X POST "CHAINSTACK_NODE_URL" \
    -H "Content-Type: application/json" \
    --data '{
      "jsonrpc": "2.0",
      "method": "arc_getVersion",
      "params": [],
      "id": 1
    }'
  ```
</CodeGroup>

## Use case

Arc is young and moving quickly, so behaviour can differ between releases. When a method returns something unexpected, `arc_getVersion` tells you which build you are talking to before you start bisecting your own code.


## OpenAPI

````yaml openapi/arc_node_api/arc_namespace/arc_getVersion.json POST /
openapi: 3.0.0
info:
  title: Chainstack Node API
  version: 1.0.0
  description: This is an API for interacting with a Chainstack node.
servers:
  - url: https://arc-testnet.core.chainstack.com/6caa7fd90475ac9214f7521dd460fa7c
security: []
paths:
  /:
    post:
      tags:
        - upload
      summary: arc_getVersion
      operationId: arc_getVersion
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: arc_getVersion
                params:
                  type: array
                  default: []
      responses:
        '200':
          description: Returns the result of arc_getVersion.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object
                    properties:
                      git_version:
                        type: string
                      git_commit:
                        type: string
                      git_short_hash:
                        type: string
                      cargo_version:
                        type: string
              example:
                jsonrpc: '2.0'
                id: 1
                result:
                  git_version: v0.7.2
                  git_commit: a85368c0b0a7924e4c74035d195f96deb0291622
                  git_short_hash: a85368c0
                  cargo_version: v0.7.2 (a85368c0)

````