---
updatedAt: 2025-06-11T20:38:28.000Z
agentTools:
  projectIndex: https://docs.allthatnode.com/llms.txt
---

# Node Status

Get CometBFT status including node info, pubkey, latest block hash, app hash, block height and time.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "CometBFT RPC",
    "contact": {
      "name": "CometBFT",
      "url": "https://cometbft.com/"
    },
    "description": "CometBFT supports the following RPC protocols:\n\n* URI over HTTP\n* JSONRPC over HTTP\n* JSONRPC over websockets\n\n## Configuration\n\nRPC can be configured by tuning parameters under `[rpc]` table in the\n`$CMTHOME/config/config.toml` file or by using the `--rpc.X` command-line\nflags.\n\nThe default RPC listen address is `tcp://127.0.0.1:26657`.\nTo set another address, set the `laddr` config parameter to desired value.\nCORS (Cross-Origin Resource Sharing) can be enabled by setting\n`cors_allowed_origins`, `cors_allowed_methods`, `cors_allowed_headers`\nconfig parameters.\n\nIf testing using a local RPC node, under the `[rpc]`\nsection change the `cors_allowed_origins` property, please add the URL of\nthe site where this OpenAPI document is running, for example:\n\n  `cors_allowed_origins = [\"http://localhost:8088\"]`\n\nor if testing from the official documentation site:\n\n  `cors_allowed_origins = [\"https://docs.cometbft.com\"]`\n\n## Arguments\n\nArguments which expect strings or byte arrays may be passed as quoted\nstrings, like `\"abc\"` or as `0x`-prefixed strings, like `0x616263`.\n\n## URI/HTTP\n\nA REST like interface.\n\n    curl localhost:26657/block?height=5\n\n## JSONRPC/HTTP\n\nJSONRPC requests can be POST'd to the root RPC endpoint via HTTP.\n\n    curl --header \"Content-Type: application/json\" --request POST --data '{\"method\": \"block\", \"params\": [\"5\"], \"id\": 1}' localhost:26657\n\n## JSONRPC/websockets\n\nJSONRPC requests can be also made via websocket.\nThe websocket endpoint is at `/websocket`, e.g. `localhost:26657/websocket`.\nAsynchronous RPC functions like event `subscribe` and `unsubscribe` are\nonly available via websockets.\n\nFor example using the [websocat](https://github.com/vi/websocat) tool, you can subscribe for 'NewBlock` events\nwith the following command:\n\n    echo '{ \"jsonrpc\": \"2.0\",\"method\": \"subscribe\",\"id\": 0,\"params\": {\"query\": \"tm.event='\"'NewBlock'\"'\"} }' | websocat -n -t ws://127.0.0.1:26657/websocket\n",
    "version": "v0.38.x",
    "license": {
      "name": "Apache 2.0",
      "url": "https://github.com/cometbft/cometbft/blob/v0.38.x/LICENSE"
    }
  },
  "servers": [
    {
      "url": "https://rpc.cosmos.directory/cosmoshub",
      "description": "Interact with the CometBFT RPC from a public node in the Cosmos registry"
    },
    {
      "url": "http://localhost:26657",
      "description": "Interact with CometBFT RPC node running locally"
    }
  ],
  "tags": [
    {
      "name": "Info",
      "description": "Informations about the node APIs"
    }
  ],
  "paths": {
    "/status": {
      "get": {
        "summary": "Node Status",
        "operationId": "status",
        "tags": [
          "Info"
        ],
        "description": "Get CometBFT status including node info, pubkey, latest block hash, app hash, block height and time.\n",
        "responses": {
          "200": {
            "description": "Status of the node",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusResponse"
                }
              }
            }
          },
          "500": {
            "description": "empty error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "JSONRPC": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 0
          },
          "jsonrpc": {
            "type": "string",
            "example": "2.0"
          }
        }
      },
      "ErrorResponse": {
        "description": "Error Response",
        "allOf": [
          {
            "$ref": "#/components/schemas/JSONRPC"
          },
          {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "example": "Description of failure"
              }
            }
          }
        ]
      },
      "ProtocolVersion": {
        "type": "object",
        "properties": {
          "p2p": {
            "type": "string",
            "example": "7"
          },
          "block": {
            "type": "string",
            "example": "10"
          },
          "app": {
            "type": "string",
            "example": "0"
          }
        }
      },
      "PubKey": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "example": "tendermint/PubKeyEd25519"
          },
          "value": {
            "type": "string",
            "example": "A6DoBUypNtUAyEHWtQ9bFjfNg8Bo9CrnkUGl6k6OHN4="
          }
        }
      },
      "NodeInfo": {
        "type": "object",
        "properties": {
          "protocol_version": {
            "$ref": "#/components/schemas/ProtocolVersion"
          },
          "id": {
            "type": "string",
            "example": "5576458aef205977e18fd50b274e9b5d9014525a"
          },
          "listen_addr": {
            "type": "string",
            "example": "tcp:0.0.0.0:26656"
          },
          "network": {
            "type": "string",
            "example": "cosmoshub-2"
          },
          "version": {
            "type": "string",
            "example": "0.32.1"
          },
          "channels": {
            "type": "string",
            "example": "4020212223303800"
          },
          "moniker": {
            "type": "string",
            "example": "moniker-node"
          },
          "other": {
            "type": "object",
            "properties": {
              "tx_index": {
                "type": "string",
                "example": "on"
              },
              "rpc_address": {
                "type": "string",
                "example": "tcp:0.0.0.0:26657"
              }
            }
          }
        }
      },
      "SyncInfo": {
        "type": "object",
        "properties": {
          "latest_block_hash": {
            "type": "string",
            "example": "790BA84C3545FCCC49A5C629CEE6EA58A6E875C3862175BDC11EE7AF54703501"
          },
          "latest_app_hash": {
            "type": "string",
            "example": "C9AEBB441B787D9F1D846DE51F3826F4FD386108B59B08239653ABF59455C3F8"
          },
          "latest_block_height": {
            "type": "string",
            "example": "1262196"
          },
          "latest_block_time": {
            "type": "string",
            "example": "2019-08-01T11:52:22.818762194Z"
          },
          "earliest_block_hash": {
            "type": "string",
            "example": "790BA84C3545FCCC49A5C629CEE6EA58A6E875C3862175BDC11EE7AF54703501"
          },
          "earliest_app_hash": {
            "type": "string",
            "example": "C9AEBB441B787D9F1D846DE51F3826F4FD386108B59B08239653ABF59455C3F8"
          },
          "earliest_block_height": {
            "type": "string",
            "example": "1262196"
          },
          "earliest_block_time": {
            "type": "string",
            "example": "2019-08-01T11:52:22.818762194Z"
          },
          "catching_up": {
            "type": "boolean",
            "example": false
          }
        }
      },
      "ValidatorInfo": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string",
            "example": "5D6A51A8E9899C44079C6AF90618BA0369070E6E"
          },
          "pub_key": {
            "$ref": "#/components/schemas/PubKey"
          },
          "voting_power": {
            "type": "string",
            "example": "0"
          }
        }
      },
      "Status": {
        "description": "Status Response",
        "type": "object",
        "properties": {
          "node_info": {
            "$ref": "#/components/schemas/NodeInfo"
          },
          "sync_info": {
            "$ref": "#/components/schemas/SyncInfo"
          },
          "validator_info": {
            "$ref": "#/components/schemas/ValidatorInfo"
          }
        }
      },
      "StatusResponse": {
        "description": "Status Response",
        "allOf": [
          {
            "$ref": "#/components/schemas/JSONRPC"
          },
          {
            "type": "object",
            "properties": {
              "result": {
                "$ref": "#/components/schemas/Status"
              }
            }
          }
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```