---
title: "Get origination by hash"
method: GET
path: "/v1/operations/originations/{hash}"
tags: ["Operations"]
---

# Get origination by hash

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

Returns origination operations 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`

- OriginationOperation[]
  - `type` string — Type of the operation, `origination` - deployment / contract creation operation.
  - `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
  - `counter` integer — An account nonce which is used to prevent operation replay
  - `initiator` Alias
    - `alias` string, nullable — Account alias name (off-chain data).
    - `address` string, required — Account address (public key hash).
  - `sender` Alias, required
    - `alias` string, nullable — Account alias name (off-chain data).
    - `address` string, required — Account address (public key hash).
  - `senderCodeHash` integer, nullable — Hash of the sender contract code, or `null` is the sender is not a contract
  - `nonce` integer, nullable — An account nonce which is used to prevent internal 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 contract storage in the blockchain (micro tez)
  - `allocationFee` integer — The amount of funds burned from the sender account for contract account creation (micro tez)
  - `contractBalance` integer — The contract origination balance (micro tez)
  - `contractDelegate` Alias
    - `alias` string, nullable — Account alias name (off-chain data).
    - `address` string, required — Account address (public key hash).
  - `code` unknown
  - `storage` unknown
  - `diffs` BigMapDiff[], nullable — List of bigmap updates (aka big_map_diffs) caused by the origination.
    - `bigmap` integer — Bigmap Id
    - `path` string, required — Path to the bigmap in the contract storage
    - `action` string, required — Action with the bigmap (`allocate`, `add_key`, `update_key`, `remove_key`, `remove`)
    - `content` BigMapKeyShort
      - `hash` string, required — Key hash
      - `key` unknown, required
      - `value` unknown, required
  - `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 a 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)
  - `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
  - `originatedContract` OriginatedContract
    - `kind` string, required — Kind of the contract (`delegator_contract` or `smart_contract`), where `delegator_contract` - manager.tz smart contract for delegation purpose only
    - `alias` string, nullable — Name of the project behind the contract or contract description
    - `address` string, required — Public key hash of the contract
    - `typeHash` integer — 32-bit hash of the contract parameter and storage types. This field can be used for searching similar contracts (which have the same interface).
    - `codeHash` integer — 32-bit hash of the contract code. This field can be used for searching same contracts (which have the same script).
    - `tzips` string[], nullable — List of implemented standards (TZIPs)
  - `tokenTransfersCount` integer, nullable — Number of token transfers produced by the operation, or `null` if there are no transfers
  - `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)
