---
title: "Inject an operation into Jstz"
method: POST
path: "/operations"
tags: ["Operations"]
---

# Inject an operation into Jstz

`POST /operations`

## Request body

- SignedOperation
  - `inner` Operation, required
    - `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
  - `signature` union, required
    - string
    - string
    - string
  - `verifier` Verifier
    - `Passkey` AuthenticatorAssertionResponseRaw, required — A narrowed view of the raw AuthenticatorAssertionResponse returned by the passkey device. Only the fields necessary for verification are kept.
      - `authenticatorData` string, required
      - `clientDataJSON` string, required — clientDataJSON contains metadata about the client and the cryptographic challenge in encoded in JSON. For the purposes of Jstz, the challenge is the operation hash. This field is base64url encoded

## Response `200`

Operation successfully injected

## 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)
