Describe the solution you'd like
Two endpoints:
GET /v2/snapshot/{burnchain_height}GET /v2/snapshot/{hash}
The params includes the following information:
burnchain_height is the burnChain block height
burnchain_hash is the burnChain block hash
They are all uniqueIndex in snapshot table which can points to a unique row in SQLite query.
If the node cannot provide a valid snapshot state (e.g., if the node haven't reached burnchain_height or there is no burnchain_hash in the database) a 400 response is returned.
The 200 response should contain the following data:
This issue is related to https://github.com/stacks-network/stacks-blockchain/issues/1969 which aims to split mining program from origin stacks-node
Describe the solution you'd like Two endpoints:
GET /v2/snapshot/{burnchain_height}
GET /v2/snapshot/{hash}
The params includes the following information:
burnchain_height
is the burnChain block heightburnchain_hash
is the burnChain block hashThey are all
uniqueIndex
insnapshot
table which can points to a unique row in SQLite query.If the node cannot provide a valid snapshot state (e.g., if the node haven't reached burnchain_height or there is no burnchain_hash in the database) a 400 response is returned.
The 200 response should contain the following data:
block_height
burn_header_hash
sortition_hash
consensus_hash
winner_block_txid
Example response data