mirror of
https://github.com/alexgo-io/stacks-blockchain-api.git
synced 2026-01-12 08:34:40 +08:00
feat: add index_block_hash to by height result
This commit is contained in:
@@ -37,6 +37,14 @@
|
||||
"type": "string",
|
||||
"description": "Hash representing the block"
|
||||
},
|
||||
"index_block_hash": {
|
||||
"type": "string",
|
||||
"description": "Hash of the index block"
|
||||
},
|
||||
"parent_index_block_hash": {
|
||||
"type": "string",
|
||||
"description": "Hash of the parent index block"
|
||||
},
|
||||
"parent_block_hash": {
|
||||
"type": "string",
|
||||
"description": "Hash of the parent block"
|
||||
|
||||
8
docs/generated.d.ts
vendored
8
docs/generated.d.ts
vendored
@@ -1219,6 +1219,14 @@ export interface Block {
|
||||
* Hash representing the block
|
||||
*/
|
||||
hash: string;
|
||||
/**
|
||||
* Hash of the index block
|
||||
*/
|
||||
index_block_hash?: string;
|
||||
/**
|
||||
* Hash of the parent index block
|
||||
*/
|
||||
parent_index_block_hash?: string;
|
||||
/**
|
||||
* Hash of the parent block
|
||||
*/
|
||||
|
||||
@@ -458,6 +458,8 @@ function parseDbBlock(
|
||||
canonical: dbBlock.canonical,
|
||||
height: dbBlock.block_height,
|
||||
hash: dbBlock.block_hash,
|
||||
index_block_hash: dbBlock.index_block_hash,
|
||||
parent_index_block_hash: dbBlock.parent_index_block_hash,
|
||||
parent_block_hash: dbBlock.parent_block_hash,
|
||||
burn_block_time: dbBlock.burn_block_time,
|
||||
burn_block_time_iso: unixEpochToIso(dbBlock.burn_block_time),
|
||||
|
||||
Reference in New Issue
Block a user