/
/Stacks 3.0+ RPC API
ChangesDocsSign in
Sign in
  • APIs
  • Generators
  • Stacks
  • Projects
  • Docs
  • History
  • Schema
Checked 2h ago · Updated 2w ago
Accounts1
Atlas2
Blocks21
  • getGet Nakamoto block by ID
  • getFetch a Nakamoto block by its height and optional tip
  • getFetch metadata about the ongoing Nakamoto tenure
  • getFetch a sequence of Nakamoto blocks in a tenure
  • getGet the list of Stacks blocks in a tenure
  • getGet the list of Stacks blocks in a tenure given Bitcoin block hash
  • getGet latest sortition information
  • getGet latest and last winning sortitions
  • getGet sortition by consensus hash
  • getGet sortition by burn header hash
  • getGet sortition by burn block height
  • getGet number of blocks signed by signer during a given reward cycle
  • getGet stream of confirmed microblocks (Epoch 2.x)
  • getGet a stream of microblocks beginning with the given microblock (Epoch 2.x).
  • getGet stream of unconfirmed microblocks (Epoch 2.x)
  • postSubmit a microblock (Epoch 2.x)
  • getGet recent 2.x block headers
  • getGet Stacks 2.x block by ID
  • getGet tenure fork information
  • getGet tenure tip
  • postUpload a Nakamoto block
Fees2
Info4
Mining2
Signers1
Smart Contracts10
StackerDB5
Transactions4
    Blocks

    Get recent 2.x block headers

    Deprecated: This endpoint is deprecated since Nakamoto.** Stream (as a JSON array) up to quantity most recent anchored Stacks block headers. The result is ordered from the current tip backwards.

    get/v2/headers/{quantity}

    Path parameters

    quantityinteger required

    Number of headers to return (max 256)

    Parameters

    ./components/parameters/tip.yaml — unresolved $ref

    Response

    Array of block headers

    BlockHeaders required— unresolved $ref

    Changes