---
title: "Get register constant by hash"
method: GET
path: "/v1/operations/register_constants/{hash}"
tags: ["Operations"]
---

# Get register constant by hash

`GET /v1/operations/register_constants/{hash}`

Returns register global constant operation with specified hash.

## Path parameters

- `hash` string, required

## Query parameters

- `micheline` 'Json' | 'JsonString' | 'Raw' | 'RawString'
- `quote` 'None' | 'Btc' | 'Eur' | 'Usd' | 'Cny' | 'Jpy' | 'Krw' | 'Eth' | 'Gbp'

## Response `200`

- RegisterConstantOperation[]
  - `type` string — Type of the operation, `register_constant` - is used to register a global constant - Micheline expression that can be reused by multiple smart contracts
  - `id` integer — Unique ID of the operation, stored in the TzKT indexer database
  - `level` integer — The height of the block from the genesis block, in which the operation was included
  - `timestamp` string, date-time — Datetime of the block, in which the operation was included (ISO 8601, e.g. `2020-02-20T02:40:57Z`)
  - `block` string, required — Hash of the block, in which the operation was included
  - `hash` string, required — Hash of the operation
  - `sender` Alias, required
    - `alias` string, nullable — Account alias name (off-chain data).
    - `address` string, required — Account address (public key hash).
  - `counter` integer — An account nonce which is used to prevent operation replay
  - `gasLimit` integer — A cap on the amount of gas a given operation can consume
  - `gasUsed` integer — Amount of gas, consumed by the operation
  - `storageLimit` integer — A cap on the amount of storage a given operation can consume
  - `storageUsed` integer — Amount of storage, consumed by the operation
  - `bakerFee` integer — Fee to the baker, produced block, in which the operation was included (micro tez)
  - `storageFee` integer — The amount of funds burned from the sender account for used the blockchain storage (micro tez)
  - `status` string, required — Operation status (`applied` - an operation applied by the node and successfully added to the blockchain, `failed` - an operation which failed with some particular error (not enough balance, gas limit, etc), `backtracked` - an operation which was successful but reverted due to one of the following operations in the same operation group was failed, `skipped` - all operations after the failed one in an operation group)
  - `address` string, nullable — Global address of the registered constant (null if the operation failed)
  - `value` unknown
  - `errors` OperationError[], nullable — List of errors provided by the node, injected the operation to the blockchain. `null` if there is no errors
    - `type` string, required — Type of an error (`error.id`, `contract.balance_too_low`, `contract.non_existing_contract`, `contract.manager.unregistered_delegate`, etc.) https://tezos.gitlab.io/api/errors.html - full list of errors
  - `quote` QuoteShort
    - `btc` number, double, nullable — XTZ/BTC price
    - `eur` number, double, nullable — XTZ/EUR price
    - `usd` number, double, nullable — XTZ/USD price
    - `cny` number, double, nullable — XTZ/CNY price
    - `jpy` number, double, nullable — XTZ/JPY price
    - `krw` number, double, nullable — XTZ/KRW price
    - `eth` number, double, nullable — XTZ/ETH price
    - `gbp` number, double, nullable — XTZ/GBP price

---

[API](https://skmtc.dev/tzkt/apis/tzkt-api.md) · [All operations](https://skmtc.dev/tzkt/apis/tzkt-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tzkt/tzkt-api/revisions/a2e2aba5e534/schema)
