---
title: "POST /poktroll.proof.Msg/SubmitProof"
method: POST
path: "/poktroll.proof.Msg/SubmitProof"
tags: ["Msg"]
---

# POST /poktroll.proof.Msg/SubmitProof

`POST /poktroll.proof.Msg/SubmitProof`

## Request body

- PoktrollProofMsgSubmitProof
  - `proof` string, byte
  - `session_header` PoktrollSessionSessionHeader — SessionHeader is a lightweight header for a session that can be passed around. It is the minimal amount of data required to hydrate & retrieve all data relevant to the session.
    - `application_address` string — The Bech32 address of the application.
    - `service_id` string
    - `session_end_block_height` string, int64 — Note that`session_end_block_height` is a derivative of (`start` + `num_blocks_per_session`) as goverened by onchain params at the time of the session start. It is stored as an additional field to simplofy business logic in case the number of blocks_per_session changes during the session. The height at which this session ended, this is the last block of the session
    - `session_id` string — A unique pseudoranom ID for this session
    - `session_start_block_height` string, int64
  - `supplier_operator_address` string

## Response `200`

A successful response.

- PoktrollProofMsgSubmitProofResponse
  - `proof` PoktrollProofProof
    - `closest_merkle_proof` string, byte — The serialized SMST compacted proof from the `#ClosestProof()` method.
    - `session_header` PoktrollSessionSessionHeader — SessionHeader is a lightweight header for a session that can be passed around. It is the minimal amount of data required to hydrate & retrieve all data relevant to the session.
      - `application_address` string — The Bech32 address of the application.
      - `service_id` string
      - `session_end_block_height` string, int64 — Note that`session_end_block_height` is a derivative of (`start` + `num_blocks_per_session`) as goverened by onchain params at the time of the session start. It is stored as an additional field to simplofy business logic in case the number of blocks_per_session changes during the session. The height at which this session ended, this is the last block of the session
      - `session_id` string — A unique pseudoranom ID for this session
      - `session_start_block_height` string, int64
    - `supplier_operator_address` string — Address of the supplier's operator that submitted this proof.

## Other responses

- `default` — An unexpected error response.

## Changes

- **2024-08-14** `21c607e4fa20` — 1 info
  - api operation id `PoktrollProofMsg_SubmitProof` removed and replaced with `GithubCompoktNetworkpoktrollMsg_SubmitProof`
- **2024-02-23** `54713b4a9d25` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/pokt-network/apis/http-api-console/changes/poktroll.proof.Msg/SubmitProof/post.md)

---

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