Skip to content

Get STX blocks by BTC block #1755

@He1DAr

Description

@He1DAr

Hello team,
We are currently working on a new feature in the explorer to display a list of STX blocks associated with a specific BTC block. For this, we need a new endpoint that accepts either the BTC block hash or height and returns a paginated list of STX blocks.
Suggested interface:
GET /blocks/by_burn_block_hash/{burn_block_hash}?limit={limit}&offset={offset}
Response:

{
    limit: number;
    offset: number;
    total: number;
    results: Array<Block>;
}

Metadata

Metadata

Assignees

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions