NEAR Protocol Chunk API

The Chunk API from NEAR Protocol — 1 operation(s) for chunk.

Operations 1

POST /chunk #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/near-chunk-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

near-chunk-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Low-latency indexed account, token, and public-key lookup APIs for wallets and explorers. Embedded portal clients may forward an optional `apiKey` query parameter, but the public FastNEAR API does not require it.
  title: FastNEAR accounts Chunk API
  version: 3.0.3
servers:
- description: Mainnet
  url: https://api.fastnear.com
- description: Testnet
  url: https://test.api.fastnear.com
tags:
- name: Chunk
paths:
  /chunk:
    post:
      description: Returns details of a specific chunk. You can run a block details query to get a valid chunk hash.
      operationId: chunk
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JsonRpcRequest_for_chunk'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonRpcResponse_for_RpcChunkResponse_and_RpcChunkError'
      tags:
      - Chunk
components:
  schemas:
    ChunkHash:
      $ref: '#/components/schemas/CryptoHash'
    VersionedDelegateActionPayload:
      description: 'Versions of the delegate action carried by `Action::DelegateV2`. New

        versions add a variant here rather than a new `Action` variant. The variant

        is part of the signed payload, so a signature can''t be ambiguous across

        versions.'
      oneOf:
      - additionalProperties: false
        properties:
          V2:
            $ref: '#/components/schemas/DelegateActionV2'
        required:
        - V2
        type: object
    GlobalContractIdentifier:
      oneOf:
      - additionalProperties: false
        properties:
          hash:
            $ref: '#/components/schemas/CryptoHash'
        required:
        - hash
        type: object
      - additionalProperties: false
        properties:
          account_id:
            $ref: '#/components/schemas/AccountId'
        required:
        - account_id
        type: object
    InternalError:
      oneOf:
      - properties:
          info:
            properties:
              error_message:
                type: string
            required:
            - error_message
            type: object
          name:
            enum:
            - INTERNAL_ERROR
            type: string
        required:
        - name
        - info
        type: object
    DeployGlobalContractAction:
      description: Deploy global contract action
      properties:
        code:
          description: WebAssembly binary
          type: string
        deploy_mode:
          $ref: '#/components/schemas/GlobalContractDeployMode'
      required:
      - code
      - deploy_mode
      type: object
    BlockId:
      anyOf:
      - format: uint64
        minimum: 0
        title: block_height
        type: integer
      - $ref: '#/components/schemas/CryptoHash'
    UseGlobalContractAction:
      description: Use global contract action
      properties:
        contract_identifier:
          $ref: '#/components/schemas/GlobalContractIdentifier'
      required:
      - contract_identifier
      type: object
    TransferAction:
      properties:
        deposit:
          $ref: '#/components/schemas/NearToken'
      required:
      - deposit
      type: object
    CongestionInfoView:
      description: 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)
      properties:
        allowed_shard:
          format: uint16
          maximum: 65535
          minimum: 0
          type: integer
        buffered_receipts_gas:
          type: string
        delayed_receipts_gas:
          type: string
        receipt_bytes:
          format: uint64
          minimum: 0
          type: integer
      required:
      - delayed_receipts_gas
      - buffered_receipts_gas
      - receipt_bytes
      - allowed_shard
      type: object
    DeleteAccountAction:
      properties:
        beneficiary_id:
          $ref: '#/components/schemas/AccountId'
      required:
      - beneficiary_id
      type: object
    DeleteKeyAction:
      properties:
        public_key:
          allOf:
          - $ref: '#/components/schemas/PublicKey'
          description: A public key associated with the access_key to be deleted.
      required:
      - public_key
      type: object
    AccessKeyPermission:
      description: Defines permissions for AccessKey
      oneOf:
      - additionalProperties: false
        properties:
          FunctionCall:
            $ref: '#/components/schemas/FunctionCallPermission'
        required:
        - FunctionCall
        type: object
      - description: 'Grants full access to the account.

          NOTE: It''s used to replace account-level public keys.'
        enum:
        - FullAccess
        type: string
      - additionalProperties: false
        description: 'Gas key with limited permission to make transactions with FunctionCallActions

          Gas keys are a kind of access keys with a prepaid balance to pay for gas.'
        properties:
          GasKeyFunctionCall:
            items:
            - $ref: '#/components/schemas/GasKeyInfo'
            - $ref: '#/components/schemas/FunctionCallPermission'
            maxItems: 2
            minItems: 2
            type: array
        required:
        - GasKeyFunctionCall
        type: object
      - additionalProperties: false
        description: 'Gas key with full access to the account.

          Gas keys are a kind of access keys with a prepaid balance to pay for gas.'
        properties:
          GasKeyFullAccess:
            $ref: '#/components/schemas/GasKeyInfo'
        required:
        - GasKeyFullAccess
        type: object
    FunctionCallPermission:
      description: 'Grants limited permission to make transactions with FunctionCallActions

        The permission can limit the allowed balance to be spent on the prepaid gas.

        It also restrict the account ID of the receiver for this function call.

        It also can restrict the method name for the allowed function calls.'
      properties:
        allowance:
          anyOf:
          - $ref: '#/components/schemas/NearToken'
          - enum:
            - null
          description: 'Allowance is a balance limit to use by this access key to pay for function call gas and

            transaction fees. When this access key is used, both account balance and the allowance is

            decreased by the same value.

            `None` means unlimited allowance.

            NOTE: To change or increase the allowance, the old access key needs to be deleted and a new

            access key should be created.'
        method_names:
          description: 'A list of method names that can be used. The access key only allows transactions with the

            function call of one of the given method names.

            Empty list means any method name can be used.'
          items:
            type: string
          type: array
        receiver_id:
          description: The access key only allows transactions with the given receiver's account id.
          type: string
      required:
      - receiver_id
      - method_names
      type: object
    NonDelegateAction:
      description: An Action that can be included in a transaction or receipt, excluding delegate actions. This type represents all possible action types except DelegateAction to prevent infinite recursion in meta-transactions.
      oneOf:
      - additionalProperties: false
        description: 'Create an (sub)account using a transaction `receiver_id` as an ID for

          a new account ID must pass validation rules described here

          <https://nomicon.io/DataStructures/Account>.'
        properties:
          CreateAccount:
            $ref: '#/components/schemas/CreateAccountAction'
        required:
        - CreateAccount
        type: object
      - additionalProperties: false
        description: Sets a Wasm code to a receiver_id
        properties:
          DeployContract:
            $ref: '#/components/schemas/DeployContractAction'
        required:
        - DeployContract
        type: object
      - additionalProperties: false
        properties:
          FunctionCall:
            $ref: '#/components/schemas/FunctionCallAction'
        required:
        - FunctionCall
        type: object
      - additionalProperties: false
        properties:
          Transfer:
            $ref: '#/components/schemas/TransferAction'
        required:
        - Transfer
        type: object
      - additionalProperties: false
        properties:
          Stake:
            $ref: '#/components/schemas/StakeAction'
        required:
        - Stake
        type: object
      - additionalProperties: false
        properties:
          AddKey:
            $ref: '#/components/schemas/AddKeyAction'
        required:
        - AddKey
        type: object
      - additionalProperties: false
        properties:
          DeleteKey:
            $ref: '#/components/schemas/DeleteKeyAction'
        required:
        - DeleteKey
        type: object
      - additionalProperties: false
        properties:
          DeleteAccount:
            $ref: '#/components/schemas/DeleteAccountAction'
        required:
        - DeleteAccount
        type: object
      - additionalProperties: false
        properties:
          DeployGlobalContract:
            $ref: '#/components/schemas/DeployGlobalContractAction'
        required:
        - DeployGlobalContract
        type: object
      - additionalProperties: false
        properties:
          UseGlobalContract:
            $ref: '#/components/schemas/UseGlobalContractAction'
        required:
        - UseGlobalContract
        type: object
      - additionalProperties: false
        properties:
          DeterministicStateInit:
            $ref: '#/components/schemas/DeterministicStateInitAction'
        required:
        - DeterministicStateInit
        type: object
      - additionalProperties: false
        properties:
          TransferToGasKey:
            $ref: '#/components/schemas/TransferToGasKeyAction'
        required:
        - TransferToGasKey
        type: object
      - additionalProperties: false
        properties:
          WithdrawFromGasKey:
            $ref: '#/components/schemas/WithdrawFromGasKeyAction'
        required:
        - WithdrawFromGasKey
        type: object
    GlobalContractDeployMode:
      oneOf:
      - description: 'Contract is deployed under its code hash.

          Users will be able reference it by that hash.

          This effectively makes the contract immutable.'
        enum:
        - CodeHash
        type: string
      - description: 'Contract is deployed under the owner account id.

          Users will be able reference it by that account id.

          This allows the owner to update the contract for all its users.'
        enum:
        - AccountId
        type: string
    ReceiptView:
      properties:
        predecessor_id:
          $ref: '#/components/schemas/AccountId'
        priority:
          default: 0
          description: Deprecated, retained for backward compatibility.
          format: uint64
          minimum: 0
          type: integer
        receipt:
          $ref: '#/components/schemas/ReceiptEnumView'
        receipt_id:
          $ref: '#/components/schemas/CryptoHash'
        receiver_id:
          $ref: '#/components/schemas/AccountId'
      required:
      - predecessor_id
      - receiver_id
      - receipt_id
      - receipt
      type: object
    RpcChunkRequest:
      anyOf:
      - properties:
          block_id:
            $ref: '#/components/schemas/BlockId'
          shard_id:
            $ref: '#/components/schemas/ShardId'
        required:
        - block_id
        - shard_id
        title: block_shard_id
        type: object
      - properties:
          chunk_id:
            $ref: '#/components/schemas/CryptoHash'
        required:
        - chunk_id
        title: chunk_hash
        type: object
      title: RpcChunkRequest
      type: object
    ErrorWrapper_for_RpcChunkError:
      oneOf:
      - properties:
          cause:
            $ref: '#/components/schemas/RpcRequestValidationErrorKind'
          name:
            enum:
            - REQUEST_VALIDATION_ERROR
            type: string
        required:
        - name
        - cause
        type: object
      - properties:
          cause:
            $ref: '#/components/schemas/RpcChunkError'
          name:
            enum:
            - HANDLER_ERROR
            type: string
        required:
        - name
        - cause
        type: object
      - properties:
          cause:
            $ref: '#/components/schemas/InternalError'
          name:
            enum:
            - INTERNAL_ERROR
            type: string
        required:
        - name
        - cause
        type: object
    RpcChunkResponse:
      properties:
        author:
          $ref: '#/components/schemas/AccountId'
        header:
          $ref: '#/components/schemas/ChunkHeaderView'
        receipts:
          items:
            $ref: '#/components/schemas/ReceiptView'
          type: array
        transactions:
          items:
            $ref: '#/components/schemas/SignedTransactionView'
          type: array
      required:
      - author
      - header
      - transactions
      - receipts
      type: object
    JsonRpcRequest_for_chunk:
      properties:
        id:
          type: string
        jsonrpc:
          type: string
        method:
          enum:
          - chunk
          type: string
        params:
          $ref: '#/components/schemas/RpcChunkRequest'
      required:
      - jsonrpc
      - id
      - params
      - method
      title: JsonRpcRequest_for_chunk
      type: object
    PublicKey:
      type: string
    CreateAccountAction:
      description: Create account action
      type: object
    DeployContractAction:
      description: Deploy contract action
      properties:
        code:
          description: WebAssembly binary
          type: string
      required:
      - code
      type: object
    NearGas:
      format: uint64
      minimum: 0
      type: integer
    ValidatorStakeViewV1:
      properties:
        account_id:
          $ref: '#/components/schemas/AccountId'
        public_key:
          $ref: '#/components/schemas/PublicKey'
        stake:
          $ref: '#/components/schemas/NearToken'
      required:
      - account_id
      - public_key
      - stake
      type: object
    ReceiptEnumView:
      oneOf:
      - additionalProperties: false
        properties:
          Action:
            properties:
              actions:
                items:
                  $ref: '#/components/schemas/ActionView'
                type: array
              gas_price:
                $ref: '#/components/schemas/NearToken'
              input_data_ids:
                items:
                  $ref: '#/components/schemas/CryptoHash'
                type: array
              is_promise_yield:
                default: false
                type: boolean
              output_data_receivers:
                items:
                  $ref: '#/components/schemas/DataReceiverView'
                type: array
              refund_to:
                anyOf:
                - $ref: '#/components/schemas/AccountId'
                - enum:
                  - null
              signer_id:
                $ref: '#/components/schemas/AccountId'
              signer_public_key:
                $ref: '#/components/schemas/PublicKey'
            required:
            - signer_id
            - signer_public_key
            - gas_price
            - output_data_receivers
            - input_data_ids
            - actions
            type: object
        required:
        - Action
        type: object
      - additionalProperties: false
        properties:
          Data:
            properties:
              data:
                default: null
                type:
                - string
                - 'null'
              data_id:
                $ref: '#/components/schemas/CryptoHash'
              is_promise_resume:
                default: false
                type: boolean
            required:
            - data_id
            type: object
        required:
        - Data
        type: object
      - additionalProperties: false
        properties:
          GlobalContractDistribution:
            properties:
              already_delivered_shards:
                items:
                  $ref: '#/components/schemas/ShardId'
                type: array
              code:
                type: string
              id:
                $ref: '#/components/schemas/GlobalContractIdentifier'
              nonce:
                format: uint64
                minimum: 0
                type:
                - integer
                - 'null'
              target_shard:
                $ref: '#/components/schemas/ShardId'
            required:
            - id
            - target_shard
            - already_delivered_shards
            - code
            type: object
        required:
        - GlobalContractDistribution
        type: object
    NearToken:
      type: string
    ValidatorStakeView:
      oneOf:
      - allOf:
        - $ref: '#/components/schemas/ValidatorStakeViewV1'
        properties:
          validator_stake_struct_version:
            enum:
            - V1
            type: string
        required:
        - validator_stake_struct_version
        type: object
    TransferToGasKeyAction:
      description: Transfer NEAR to a gas key's balance
      properties:
        deposit:
          allOf:
          - $ref: '#/components/schemas/NearToken'
          description: Amount of NEAR to transfer to the gas key
        public_key:
          allOf:
          - $ref: '#/components/schemas/PublicKey'
          description: The public key of the gas key to fund
      required:
      - public_key
      - deposit
      type: object
    DeterministicAccountStateInit:
      oneOf:
      - additionalProperties: false
        properties:
          V1:
            $ref: '#/components/schemas/DeterministicAccountStateInitV1'
        required:
        - V1
        type: object
    SignedTransactionView:
      properties:
        actions:
          items:
            $ref: '#/components/schemas/ActionView'
          type: array
        hash:
          $ref: '#/components/schemas/CryptoHash'
        nonce:
          format: uint64
          minimum: 0
          type: integer
        nonce_index:
          format: uint16
          maximum: 65535
          minimum: 0
          type:
          - integer
          - 'null'
        nonce_mode:
          anyOf:
          - $ref: '#/components/schemas/NonceMode'
          - enum:
            - null
        priority_fee:
          default: 0
          description: Deprecated, retained for backward compatibility.
          format: uint64
          minimum: 0
          type: integer
        public_key:
          $ref: '#/components/schemas/PublicKey'
        receiver_id:
          $ref: '#/components/schemas/AccountId'
        signature:
          $ref: '#/components/schemas/Signature'
        signer_id:
          $ref: '#/components/schemas/AccountId'
      required:
      - signer_id
      - public_key
      - nonce
      - receiver_id
      - actions
      - signature
      - hash
      type: object
    GlobalContractIdentifierView:
      oneOf:
      - additionalProperties: false
        properties:
          hash:
            $ref: '#/components/schemas/CryptoHash'
        required:
        - hash
        type: object
      - additionalProperties: false
        properties:
          account_id:
            $ref: '#/components/schemas/AccountId'
        required:
        - account_id
        type: object
    DeterministicAccountStateInitV1:
      properties:
        code:
          $ref: '#/components/schemas/GlobalContractIdentifier'
        data:
          additionalProperties:
            type: string
          type: object
      required:
      - code
      - data
      type: object
    ActionView:
      oneOf:
      - enum:
        - CreateAccount
        type: string
      - additionalProperties: false
        properties:
          DeployContract:
            properties:
              code:
                format: bytes
                type: string
            required:
            - code
            type: object
        required:
        - DeployContract
        type: object
      - additionalProperties: false
        properties:
          FunctionCall:
            properties:
              args:
                $ref: '#/components/schemas/FunctionArgs'
              deposit:
                $ref: '#/components/schemas/NearToken'
              gas:
                $ref: '#/components/schemas/NearGas'
              method_name:
                type: string
            required:
            - method_name
            - args
            - gas
            - deposit
            type: object
        required:
        - FunctionCall
        type: object
      - additionalProperties: false
        properties:
          Transfer:
            properties:
              deposit:
                $ref: '#/components/schemas/NearToken'
            required:
            - deposit
            type: object
        required:
        - Transfer
        type: object
      - additionalProperties: false
        properties:
          Stake:
            properties:
              public_key:
                $ref: '#/components/schemas/PublicKey'
              stake:
                $ref: '#/components/schemas/NearToken'
            required:
            - stake
            - public_key
            type: object
        required:
        - Stake
        type: object
      - additionalProperties: false
        properties:
          AddKey:
            properties:
              access_key:
                $ref: '#/components/schemas/AccessKeyView'
              public_key:
                $ref: '#/components/schemas/PublicKey'
            required:
            - public_key
            - access_key
            type: object
        required:
        - AddKey
        type: object
      - additionalProperties: false
        properties:
          DeleteKey:
            properties:
              public_key:
                $ref: '#/components/schemas/PublicKey'
            required:
            - public_key
            type: object
        required:
        - DeleteKey
        type: object
      - additionalProperties: false
        properties:
          DeleteAccount:
            properties:
              beneficiary_id:
                $ref: '#/components/schemas/AccountId'
            required:
            - beneficiary_id
            type: object
        required:
        - DeleteAccount
        type: object
      - additionalProperties: false
        properties:
          Delegate:
            properties:
              delegate_action:
                $ref: '#/components/schemas/DelegateAction'
              signature:
                $ref: '#/components/schemas/Signature'
            required:
            - delegate_action
            - signature
            type: object
        required:
        - Delegate
        type: object
      - additionalProperties: false
        properties:
          DelegateV2:
            properties:
              delegate_action:
                $ref: '#/components/schemas/VersionedDelegateActionPayload'
              signature:
                $ref: '#/components/schemas/Signature'
            required:
            - delegate_action
            - signature
            type: object
        required:
        - DelegateV2
        type: object
      - additionalProperties: false
        properties:
          DeployGlobalContract:
            properties:
              code:
                format: bytes
                type: string
            required:
            - code
            type: object
        required:
        - DeployGlobalContract
        type: object
      - additionalProperties: false
        properties:
          DeployGlobalContractByAccountId:
            properties:
              code:
                format: bytes
                type: string
            required:
            - code
            type: object
        required:
        - DeployGlobalContractByAccountId
        type: object
      - additionalProperties: false
        properties:
          UseGlobalContract:
            properties:
              code_hash:
                $ref: '#/components/schemas/CryptoHash'
            required:
            - code_hash
            type: object
        required:
        - UseGlobalContract
        type: object
      - additionalProperties: false
        properties:
          UseGlobalContractByAccountId:
            properties:
              account_id:
                $ref: '#/components/schemas/AccountId'
            required:
            - account_id
            type: object
        required:
        - UseGlobalContractByAccountId
        type: object
      - additionalProperties: false
        properties:
          DeterministicStateInit:
            properties:
              code:
                $ref: '#/components/schemas/GlobalContractIdentifierView'
              data:
                additionalProperties:
                  type: string
                type: object
              deposit:
                $ref: '#/components/schemas/NearToken'
            required:
            - code
            - data
            - deposit
            type: object
        required:
        - DeterministicStateInit
        type: object
      - additionalProperties: false
        properties:
          TransferToGasKey:
            properties:
              deposit:
                $ref: '#/components/schemas/NearToken'
              public_key:
                $ref: '#/components/schemas/PublicKey'
            required:
            - public_key
            - deposit
            type: object
        required:
        - TransferToGasKey
        type: object
      - additionalProperties: false
        properties:
          WithdrawFromGasKey:
            properties:
              amount:
                $ref: '#/components/schemas/NearToken'
              public_key:
                $ref: '#/components/schemas/PublicKey'
            required:
            - public_key
            - amount
            type: object
        required:
        - WithdrawFromGasKey
        type: object
    RpcRequestValidationErrorKind:
      oneOf:
      - properties:
          info:
            properties:
              method_name:
                type: string
            required:
            - method_name
            type: object
          name:
            enum:
            - METHOD_NOT_FOUND
            type: string
        required:
        - name
        - info
        type: object
      - properties:
          info:
            properties:
              error_message:
                type: string
            required:
            - error_message
            type: object
          name:
            enum:
            - PARSE_ERROR
            type: string
        required:
        - name
        - info
        type: object
    AddKeyAction:
      description: An action that adds key with public key associated
      properties:
        access_key:
          allOf:
          - $ref: '#/components/schemas/AccessKey'
          description: An access key with the permission
        public_key:
          allOf:
          - $ref: '#/components/schemas/PublicKey'
          description: A public key which will be associated with an access_key
      required:
      - public_key
      - access_key
      type: object
    AccountId:
      $schema: https://json-schema.org/draft/2020-12/schema
      description: '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)

        ```'
      title: AccountId
      type: string
    DataReceiverView:
      properties:
        data_id:
          $ref: '#/components/schemas/CryptoHash'
        receiver_id:
          $ref: '#/components/schemas/AccountId'
      required:
      - data_id
      - receiver_id
      type: object
    DelegateAction:
      description: This action allows to execute the inner actions behalf of the defined sender.
      properties:
        actions:
          description: 'List of actions to be executed.


            With the meta transactions MVP defined in NEP-366, nested

            DelegateActions are not allowed. A separate type is used to enforce it.'
          items:
            $ref: '#/components/schemas/NonDelegateAction'
          type: array
        max_block_height:
          description: The maximal height of the block in the blockchain below which the given DelegateAction is valid.
          format: uint64
          minimum: 0
          type: integer
        nonce:
          description: 'Nonce to ensure that the same delegate action is not sent twice by a

            relayer and should match for given account''s `public_key`.

            After this action is processed it will increment.'
          format: uint64
          minimum: 0
          type: integer
        public_key:
          allOf:
          - $ref: '#/components/schemas/PublicKey'
          description: Public key used to sign this delegated action.
        receiver_id:
          allOf:
          - $ref: '#/components/schemas/AccountId'
          description: Receiver of the delegated actions.
        sender_id:
          allOf:
          - $ref: '#/components/schemas/AccountId'
          description: Signer of the delegated actions
      required:
      - sender_id
      - receiver_id
      - actions
      - nonce
      - max_block_height
      - public_key
      type: object
    BandwidthRequestBitmap:
      description: 'Bitmap which describes which values from the predefined list are being requested.

        The nth bit is set to 1 when the nth value from the list is being requested.'
      properties:
        data:
          items:
            format: uint8
            maximum: 255
            minimum: 0
            type: integer
          maxItems: 5
          minItems: 5
          type: array
      required:
      - data
      type: object
    BandwidthRequest:
      description: '`BandwidthRequest` describes the size of receipts that a shard would like to send to another shard.

        When a shard wants to send a lot of receipts to another shard, it needs to create a request and wait

        for a bandwidth grant from the bandwidth scheduler.'
      properties:
        requested_values_bitmap:
          allOf:
          - $ref: '#/components/schemas/BandwidthRequestBitmap'
          description: Bitmap which describes what values of bandwidth are requested.
        to_shard:
          description: Requesting bandwidth to this shard.
          format: uint16
          maximum: 65535
          minimum: 0
          type: integer
      required:
      - to_shard
      - requested_values_bitmap
      type: object
    AccessKey:
      description: 'Access key provides limited access to an account. Each access key belongs to some account and

        is identified by a unique (within the account) public key. One account may have large number of

        access keys. Access keys allow to act on behalf of the account by restricting transactions

        that can be issued.

        `account_id,public_key` is a key in the state'
      properties:
        nonce:
          description: 'Nonce for this access key, used for tx nonce generation. When access key is created, nonce

            is set to `(block_height - 1) * 1e6` to avoid tx hash collision on access key re-creation.

            See <https://github.com/near/nearcore/issues/3779> for more details.'
          format: uint64
          minimum: 0
          type: integer
        permission:
          allOf:
          - $ref: '#/components/schemas/AccessKeyPermission'
          description: Defines permission

# --- truncated at 32 KB (46 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/near/refs/heads/main/openapi/near-chunk-api-openapi.yml