> For the complete documentation index, see [llms.txt](https://docs.getblock.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getblock.io/api-reference/cosmos/cosmos-rest-api/node-info-cosmos.md).

# node info - Cosmos

Example code for the node info REST method. Complete guide on how to use the node info REST method in GetBlock Web3 documentation.

Returns the node's information and the application's version details via the Cosmos base tendermint service.

## Endpoint

```http
GET /cosmos/base/tendermint/v1beta1/node_info
```

## Example

{% code overflow="wrap" %}

```bash
export COSMOS_REST=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${COSMOS_REST}cosmos/base/tendermint/v1beta1/node_info"
```

{% endcode %}

## Response

```json
{
    "default_node_info": {
        "network": "cosmoshub-4",
        "moniker": "cosmos-node",
        "version": "0.38.19"
    },
    "application_version": {
        "name": "gaia",
        "version": "29.0.0",
        "cosmos_sdk_version": "v0.50.x"
    }
}
```

## Response Fields

| Field                | Type   | Description                                                |
| -------------------- | ------ | ---------------------------------------------------------- |
| default\_node\_info  | object | Node network (chain id), moniker, and CometBFT version     |
| application\_version | object | The gaia application name, version, and Cosmos SDK version |

## Use Cases

* **Version discovery**: Read the gaia and SDK versions the node runs
* **Chain identity**: Confirm the network is cosmoshub-4

## Error Handling

| Error                     | Message       | Description                                                  |
| ------------------------- | ------------- | ------------------------------------------------------------ |
| 400 / Bad request         | Bad request   | A path, query, or body parameter was invalid                 |
| 404 / Not found           | Not found     | The account, validator, proposal, or resource does not exist |
| 403 / RBAC: access denied | Access denied | The GetBlock access token is missing or incorrect            |
