---
title: "Returns the hex encoded hash of an Operation"
method: POST
path: "/operations/hash"
tags: ["Operations"]
---

# Returns the hex encoded hash of an Operation

`POST /operations/hash`

## Request body

- Operation
  - `content` union, required
    - object
      - `accountCredit` integer, required
      - `functionCode` string, javascript, required
      - `_type` 'DeployFunction', required
    - object — Request used to run a smart function. The target smart function is given by the host part of the uri. The rest of the attributes will be handled by the smart function itself.
      - `body` integer[], nullable, required
      - `gasLimit` integer, required — Maximum amount of gas that is allowed for the execution of this operation
      - `headers` object, required — Any valid HTTP headers
      - `method` string, required — Any valid HTTP method
      - `uri` string, uri, required — Smart function URI in the form jstz://{smart_function_address}/rest/of/path
      - `_type` 'RunFunction', required
    - object — An operation to reveal an operation with a large payload of type `RevealType`. The root hash is the hash of the SignedOperation and the data is assumed to be available.
      - `originalOpHash` integer[], required
      - `revealType` string, required — The type of operation being revealed.
      - `rootHash` string, required — The root hash of the preimage of the operation used to reveal the operation data.
      - `_type` 'RevealLargePayload', required
  - `nonce` integer, required
  - `publicKey` union, required — Tezos public key
    - string
    - string
    - string

## Response `200`

- string

## Other responses

- `400`
- `500`

## Changes

- **2025-04-22** `b769ef8fc63d` — 7 breaking, 7 warning
  - added the new required request property `content/oneOf[subschema #1: DeployFunction]/allOf[#/components/schemas/DeployFunction]/accountCredit`
  - added the new required request property `content/oneOf[subschema #1: DeployFunction]/allOf[#/components/schemas/DeployFunction]/functionCode`
  - added the new required request property `content/oneOf[subschema #2: RunFunction]/allOf[#/components/schemas/RunFunction]/gasLimit`
  - added the new required request property `content/oneOf[subschema #3: RevealLargePayload]/allOf[#/components/schemas/RevealLargePayload]/originalOpHash`
  - …10 more
- **2025-04-17** `7ae366d62f1a` — 1 breaking
  - added the new required request property `content/oneOf[subschema #3: RevealLargePayload]/allOf[#/components/schemas/RevealLargePayload]/original_op_hash`
- …earlier changes not shown

[Full history](https://skmtc.dev/jstz-dev/apis/jstz-node/changes/operations/hash/post.md)

---

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