Skip to main content

Returns blocks in a given milestone by index.

GET 

/api/explorer/v2/milestones/by-index/:milestoneIndex/blocks

Returns block IDs in a given milestone by index sorted by white flag index.

Request

Path Parameters

    milestoneIndex integerrequired

    The milestone index to be used.

    Example: 200000

Query Parameters

    sort string

    Describes the sort order, either by oldest or newest. This value is NOT overridden by the cursor, and thus can be used to back-page.

    Example: newest
    pageSize number

    Requested page size. Overridden by the cursor if provided.

    Example: 100
    cursor string

    The cursor which can be used to retrieve the next logical page of results.

    Example: 1643383242.fa0de75d225cca2799395e5fc340702fc7eac821d2bdd79911126f131ae097a20100.100

Responses

Successful operation.

Schema
    blocks object[]required

    A list of block ids and corresponding payload types.

  • Array [
  • blockId stringrequired

    The block ID.

    payloadType integer

    The corresponding payload type of the block if it exists.

  • ]
  • cursor string

    The cursor which can be used to retrieve the next logical page of results.

Loading...