---
title: "POST /chunk"
method: POST
path: "/chunk"
---

# POST /chunk

`POST /chunk`

## Request

- The document declares no server URL.
- Auth: none declared

Returns details of a specific chunk. You can run a block details query to get a valid chunk hash.

## Request body

- JsonRpcRequestForChunk
  - `id` string, required
  - `jsonrpc` string, required
  - `method` 'chunk', required
  - `params` union, required
    - object
      - `block_id` union, required
        - integer
        - string
      - `shard_id` integer, required: The shard identifier. It may be an arbitrary number - it does not need to be a number in the range 0..NUM_SHARDS. The shard ids do not need to be sequential or contiguous. The shard id is wrapped in a new type to prevent the old pattern of using indices in range 0..NUM_SHARDS and casting to ShardId. Once the transition if fully complete it potentially may be simplified to a regular type alias.
    - object
      - `chunk_id` string, required

## Response `200`

- union
  - object
    - `result` RpcChunkResponse, required
      - `author` string, required: NEAR Account Identifier. This is a unique, syntactically valid, human-readable account identifier on the NEAR network. [See the crate-level docs for information about validation.](index.html#account-id-rules) Also see [Error kind precedence](AccountId#error-kind-precedence). ## Examples ``` use near_account_id::AccountId; let alice: AccountId = "alice.near".parse().unwrap(); assert!("ƒelicia.near".parse::<AccountId>().is_err()); // (ƒ is not f) ```
      - `header` ChunkHeaderView, required: Contains main info about the chunk.
        - `balance_burnt` string, required
        - `bandwidth_requests` BandwidthRequests, nullable: A list of shard's bandwidth requests. Describes how much the shard would like to send to other shards.
          - `V1` BandwidthRequestsV1, required: Version 1 of [`BandwidthRequest`].
            - `requests` BandwidthRequest[], required
              - …
        - `chunk_hash` string, required
        - `congestion_info` CongestionInfoView, nullable: Stores the congestion level of a shard. More info about congestion [here](https://near.github.io/nearcore/architecture/how/receipt-congestion.html?highlight=congestion#receipt-congestion)
          - `allowed_shard` integer, required
          - `buffered_receipts_gas` string, required
          - `delayed_receipts_gas` string, required
          - `receipt_bytes` integer, required
        - `encoded_length` integer, required
        - `encoded_merkle_root` string, required
        - `gas_limit` integer, required
        - `gas_used` integer, required
        - `height_created` integer, required
        - `height_included` integer, required
        - `outcome_root` string, required
        - `outgoing_receipts_root` string, required
        - `prev_block_hash` string, required
        - `prev_state_root` string, required
        - `proposed_split` TrieSplit, nullable: The result of splitting a memtrie into two possibly even parts, according to `memory_usage` stored in the trie nodes. **NOTE: This is an artificial value calculated according to `TRIE_COST`. Hence, it does not represent actual memory allocation, but the split ratio should be roughly consistent with that.**
          - `boundary_account` string, required: Account ID representing the split path
          - `left_memory` integer, required: Total `memory_usage` of the left part (excluding the split path)
          - `right_memory` integer, required: Total `memory_usage` of the right part (including the split path)
        - `rent_paid` string: TODO(2271): deprecated.
        - `shard_id` integer, required: The shard identifier. It may be an arbitrary number - it does not need to be a number in the range 0..NUM_SHARDS. The shard ids do not need to be sequential or contiguous. The shard id is wrapped in a new type to prevent the old pattern of using indices in range 0..NUM_SHARDS and casting to ShardId. Once the transition if fully complete it potentially may be simplified to a regular type alias.
        - `signature` string, required
        - `tx_root` string, required
        - `validator_proposals` ValidatorStakeView[], required
          - ValidatorStakeView
            - [`ValidatorStakeViewV1`](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/revisions/961a6d5d2b57/schema?at=%2Fcomponents%2Fschemas%2FValidatorStakeViewV1)
            - object
              - …
        - `validator_reward` string: TODO(2271): deprecated.
      - `receipts` ReceiptView[], required
        - `predecessor_id` string, required: NEAR Account Identifier. This is a unique, syntactically valid, human-readable account identifier on the NEAR network. [See the crate-level docs for information about validation.](index.html#account-id-rules) Also see [Error kind precedence](AccountId#error-kind-precedence). ## Examples ``` use near_account_id::AccountId; let alice: AccountId = "alice.near".parse().unwrap(); assert!("ƒelicia.near".parse::<AccountId>().is_err()); // (ƒ is not f) ```
        - `priority` integer: Deprecated, retained for backward compatibility.
        - `receipt` union, required
          - object
            - `Action` object, required
              - …
          - object
            - `Data` object, required
              - …
          - object
            - `GlobalContractDistribution` object, required
              - …
        - `receipt_id` string, required
        - `receiver_id` string, required: NEAR Account Identifier. This is a unique, syntactically valid, human-readable account identifier on the NEAR network. [See the crate-level docs for information about validation.](index.html#account-id-rules) Also see [Error kind precedence](AccountId#error-kind-precedence). ## Examples ``` use near_account_id::AccountId; let alice: AccountId = "alice.near".parse().unwrap(); assert!("ƒelicia.near".parse::<AccountId>().is_err()); // (ƒ is not f) ```
      - `transactions` ChunkTransactionView[], required
        - union: A transaction as a chunk holds it, written like a `TransactionEnvelopeView`.
          - intersection
            - [`SignedTransactionView`](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/revisions/961a6d5d2b57/schema?at=%2Fcomponents%2Fschemas%2FSignedTransactionView)
            - object
              - …
          - intersection
            - [`ChunkEccTransactionView`](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/revisions/961a6d5d2b57/schema?at=%2Fcomponents%2Fschemas%2FChunkEccTransactionView)
            - object
              - …
    - `id` string, required
    - `jsonrpc` string, required
  - object
    - `error` union, required
      - object
        - `cause` union, required
          - object
            - `info` object, required
              - …
            - `name` 'METHOD_NOT_FOUND', required
          - object
            - `info` object, required
              - …
            - `name` 'PARSE_ERROR', required
        - `name` 'REQUEST_VALIDATION_ERROR', required
      - object
        - `cause` union, required
          - object
            - `info` object, required
              - …
            - `name` 'INTERNAL_ERROR', required
          - object
            - `info` object, required
            - `name` 'UNKNOWN_BLOCK', required
          - object
            - `info` object, required
              - …
            - `name` 'INVALID_SHARD_ID', required
          - object
            - `info` object, required
              - …
            - `name` 'UNKNOWN_CHUNK', required
        - `name` 'HANDLER_ERROR', required
      - object
        - `cause` InternalError, required
          - `info` object, required
            - `error_message` string, required
          - `name` 'INTERNAL_ERROR', required
        - `name` 'INTERNAL_ERROR', required
    - `id` string, required
    - `jsonrpc` string, required

## Changes

- **2026-11-16** `fbdcf3b66e85`: 1 info
  - added the optional property `oneOf[subschema #1]/result/receipts/items/receipt/oneOf[subschema #1]/Action/creation_protocol_version` to the response with the `200` status
- **2026-11-12** `0308ba71436f`: 1 breaking, 1 info
  - added `subschema #1, subschema #2` to the `oneOf[subschema #1]/result/transactions/items/` response property `oneOf` list for the response status `200`
  - removed `#/components/schemas/SignedTransactionView, #/components/schemas/EccTransactionView` from the `oneOf[subschema #1]/result/transactions/items/` response property `anyOf` list for the response status `200`
- **2026-11-11** `83f89d6d138d`: 2 breaking, 2 info
  - the response property `oneOf[subschema #1]/result/receipts/items/receipt/oneOf[subschema #1]/Action/signer_public_key` became optional for the status `200`
  - the `oneOf[subschema #1]/result/receipts/items/receipt/oneOf[subschema #1]/Action/signer_public_key` response's property type changed from `string` to no type for status `200`
  - added the optional property `oneOf[subschema #1]/result/receipts/items/receipt/oneOf[subschema #1]/Action/authorization_context` to the response with the `200` status
  - added `#/components/schemas/PublicKey, subschema #2` to the `oneOf[subschema #1]/result/receipts/items/receipt/oneOf[subschema #1]/Action/signer_public_key` response property `anyOf` list for the response status `200`
- …earlier changes not shown

[Operation history](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/changes/chunk/post.md)

---

[API](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3.md) - [All operations](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/llms.txt) - [OpenAPI document](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/revisions/961a6d5d2b57?raw)
