---
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, required — Smart function code
      - `_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` string, nullable, required — A HTTP body, which can be empty or contain data. Encoded as a base64 string.
      - `gasLimit` integer, required — Maximum amount of gas that is allowed for the execution of this operation
      - `headers` object, required — Any valid HTTP headers
        - `X-JSTZ-TRANSFER` integer — Amount in mutez to transfer on request
      - `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
    - object — Response to an OracleRequest sent by the enshrined Oracle node
      - `requestId` integer, required
      - `response` string, required — The response to the OracleRequest
      - `_type` 'OracleResponse', required
  - `nonce` integer, required
  - `publicKey` union, required — Tezos public key
    - string
    - string
    - string

## Response `200`

- string

## Other responses

- `400`
- `500`

---

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