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

# POST /poktroll.proof.Msg/CreateClaim

`POST /poktroll.proof.Msg/CreateClaim`

## Request body

- PoktrollProofMsgCreateClaim
  - `root_hash` 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.

- PoktrollProofMsgCreateClaimResponse
  - `claim` PoktrollProofClaim
    - `proof_validation_status` 'PENDING_VALIDATION' | 'VALIDATED' | 'INVALID'
    - `root_hash` string, byte — Root hash from smt.SMST#Root().
    - `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 claim. the address of the supplier's operator that submitted this claim

## Other responses

- `default` — An unexpected error response.

## Changes

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

[Change history](https://skmtc.dev/pokt-network/apis/http-api-console/changes/poktroll.proof.Msg/CreateClaim/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/2ab9d24288c2/schema)
