---
updatedAt: 2026-04-22T14:36:37.000Z
agentTools:
  projectIndex: https://docs.tatum.io/llms.txt
---

# Get block hash by block number

<p style='display: none'>/v4/data/blockchains/block/hash</p>
<p><b>10 credits per API call</b></p>

<p>Get the block hash for a given block height (block number) for supported blockchains. Use block number only (e.g. ledger index for Ripple, sequence for Stellar).</p>


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "servers": [
    {
      "url": "https://api.tatum.io"
    }
  ],
  "info": {
    "version": "1.2",
    "title": "Blockchain Data"
  },
  "tags": [
    {
      "name": "Blockchains API"
    }
  ],
  "paths": {
    "/v4/data/blockchains/block/hash": {
      "get": {
        "description": "<p style='display: none'>/v4/data/blockchains/block/hash</p>\n<p><b>10 credits per API call</b></p>\n\n<p>Get the block hash for a given block height (block number) for supported blockchains. Use block number only (e.g. ledger index for Ripple, sequence for Stellar).</p>\n",
        "operationId": "GetBlockHashBlockchainsApi",
        "parameters": [
          {
            "description": "Blockchain to query.",
            "in": "query",
            "name": "chain",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ChainEnumBlockchainsApiBlock"
            }
          },
          {
            "description": "Block height (block number). For Ripple use ledger index; for Stellar use sequence.",
            "in": "query",
            "name": "blockNumber",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "example": 481863047
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hash"
                  ],
                  "properties": {
                    "hash": {
                      "type": "string",
                      "description": "Block hash (hex or chain-specific format)."
                    }
                  }
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          }
        },
        "security": [
          {
            "X-API-Key": []
          }
        ],
        "x-codeSamples": [],
        "summary": "Get block hash by block number",
        "tags": [
          "Blockchains API"
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "X-API-Key": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header",
        "description": "Your **API key** is used to identify your account & your plan, including the number of API calls per second and total monthly calls you have.\n\nEach key is for individual use only.\n\nIf you don't have a key already you can [Sign up for a Free Tatum account](https://co.tatum.io/signup) to get two keys (testnet and mainnet), allowing up to 5 API calls per second and 1,000,000 Credits.\n\nFor testing purposes, you can use the following key which only works inside docs and has limited functionality (e.g. you cannot create virtual accounts or notification subscriptions with it):\n* t-66a730ccccfd17001c479705-2f597d14ad7543f289a03418\n\nFor more details on limits and plans, [click here](https://docs.tatum.io/docs/plans-limits).\n"
      }
    },
    "responses": {
      "Error400": {
        "description": "Bad Request",
        "content": {
          "application/json": {
            "schema": {
              "properties": {
                "errorCode": {
                  "example": "validation.failed",
                  "description": "validation.failed",
                  "type": "string"
                },
                "message": {
                  "example": "Request validation failed. Please see data for additional information.",
                  "description": "Request validation failed. Please see data for additional information.",
                  "type": "string"
                },
                "statusCode": {
                  "example": 400,
                  "description": "400",
                  "type": "number"
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "target"
                    ],
                    "properties": {
                      "target": {
                        "type": "object",
                        "additionalProperties": true,
                        "description": "Request object present in the body of the HTTP request",
                        "example": {
                          "property": 12345
                        }
                      },
                      "value": {
                        "type": "number",
                        "description": "Value of the target object which validation is wrong. Can be of any data type, example here is using type number.",
                        "example": 12345
                      },
                      "property": {
                        "type": "string",
                        "description": "Property name of the target object which validation is wrong",
                        "example": "property1"
                      },
                      "constraints": {
                        "type": "object",
                        "additionalProperties": true,
                        "description": "Object of failed constraints for the target object. Key is the constraint, value is detailed description of the failed constraint.",
                        "example": {
                          "min": "property1 must not be less than 50000"
                        }
                      }
                    }
                  }
                }
              },
              "required": [
                "errorCode",
                "message",
                "statusCode",
                "data"
              ],
              "type": "object"
            }
          }
        }
      },
      "Error401": {
        "description": "Unauthorized. Not valid or inactive subscription key present in the HTTP Header.",
        "content": {
          "application/json": {
            "schema": {
              "oneOf": [
                {
                  "properties": {
                    "errorCode": {
                      "example": "subscription.not.active",
                      "description": "subscription.not.active",
                      "type": "string"
                    },
                    "message": {
                      "example": "Subscription not active anymore.",
                      "description": "Subscription not active anymore.",
                      "type": "string"
                    },
                    "statusCode": {
                      "example": 401,
                      "description": "401",
                      "type": "number"
                    }
                  },
                  "required": [
                    "errorCode",
                    "message",
                    "statusCode"
                  ],
                  "type": "object"
                },
                {
                  "properties": {
                    "errorCode": {
                      "example": "subscription.invalid",
                      "description": "subscription.invalid",
                      "type": "string"
                    },
                    "message": {
                      "example": "Unable to find valid subscription for '${apiKey}'",
                      "description": "Unable to find valid subscription for '${apiKey}'",
                      "type": "string"
                    },
                    "statusCode": {
                      "example": 401,
                      "description": "401",
                      "type": "number"
                    }
                  },
                  "required": [
                    "errorCode",
                    "message",
                    "statusCode"
                  ],
                  "type": "object"
                }
              ]
            }
          }
        }
      },
      "Error403": {
        "description": "Forbidden. The request is authenticated, but it is not possible to perform the operation due to logical error or invalid permissions.",
        "content": {
          "application/json": {
            "schema": {
              "properties": {
                "message": {
                  "example": "Forbidden",
                  "description": "Forbidden",
                  "type": "string"
                },
                "statusCode": {
                  "example": 403,
                  "description": "403",
                  "type": "number"
                }
              },
              "required": [
                "statusCode",
                "message"
              ],
              "type": "object"
            }
          }
        }
      },
      "Error500": {
        "description": "Internal server error. There was an error on the server during the processing of the request.",
        "content": {
          "application/json": {
            "schema": {
              "properties": {
                "message": {
                  "example": "Internal server error",
                  "description": "Internal server error",
                  "type": "string"
                },
                "statusCode": {
                  "example": 500,
                  "description": "500",
                  "type": "number"
                }
              },
              "required": [
                "statusCode",
                "message"
              ],
              "type": "object"
            }
          }
        }
      }
    },
    "schemas": {
      "ChainEnumBlockchainsApiBlock": {
        "type": "string",
        "example": "bitcoin-mainnet",
        "enum": [
          "algorand-mainnet-algod",
          "algorand-testnet-algod",
          "arb-one-mainnet",
          "arb-testnet",
          "avax-mainnet",
          "avax-testnet",
          "base-mainnet",
          "base-sepolia",
          "bch-mainnet",
          "bch-testnet",
          "berachain-mainnet",
          "bitcoin-mainnet",
          "bitcoin-testnet",
          "bsc-mainnet",
          "bsc-testnet",
          "cardano-mainnet",
          "cardano-preprod",
          "celo-mainnet",
          "celo-testnet",
          "chiliz-mainnet",
          "cro-mainnet",
          "cro-testnet",
          "doge-mainnet",
          "doge-testnet",
          "egld-mainnet",
          "egld-testnet",
          "eos-mainnet",
          "eos-testnet",
          "ethereum-classic-mainnet",
          "ethereum-classic-testnet",
          "ethereum-mainnet",
          "ethereum-sepolia",
          "fantom-mainnet",
          "fantom-testnet",
          "flare-coston",
          "flare-coston2",
          "flare-mainnet",
          "flare-songbird",
          "kcs-mainnet",
          "kcs-testnet",
          "klaytn-baobab",
          "klaytn-cypress",
          "litecoin-mainnet",
          "litecoin-testnet",
          "monad-mainnet",
          "monad-testnet",
          "robinhood-mainnet",
          "robinhood-testnet",
          "one-mainnet-s0",
          "one-testnet-s0",
          "optimism-mainnet",
          "optimism-testnet",
          "polygon-amoy",
          "polygon-mainnet",
          "ripple-mainnet",
          "ripple-testnet",
          "solana-devnet",
          "solana-mainnet",
          "sonic-blaze",
          "sonic-mainnet",
          "stellar-mainnet",
          "stellar-testnet",
          "tron-mainnet",
          "tron-testnet",
          "unichain-mainnet",
          "unichain-sepolia",
          "vechain-mainnet",
          "vechain-testnet",
          "xdc-mainnet",
          "xdc-testnet",
          "zcash-mainnet",
          "zcash-testnet",
          "gno-mainnet",
          "gno-testnet",
          "zksync-mainnet",
          "zksync-testnet",
          "rsk-mainnet",
          "rsk-testnet",
          "lisk-mainnet",
          "lisk-testnet"
        ]
      }
    }
  }
}
```