Skip to main content

Returns blocks in a given milestone by ID.

GET 

/api/explorer/v2/milestones/:milestoneId/blocks

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

Request

Path Parameters

    milestoneId stringrequired

    Milestone id for which to receive ledger updates.

    Example: 0x7a09324557e9200f39bf493fc8fd6ac43e9ca750c6f6d884cc72386ddcb7d695

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...