@@ -38,7 +38,7 @@ export interface Block {
38
38
*/
39
39
hash : string ;
40
40
/**
41
- * Hash of the prant block
41
+ * Hash of the parent block
42
42
* @type {string }
43
43
* @memberof Block
44
44
*/
@@ -55,6 +55,24 @@ export interface Block {
55
55
* @memberof Block
56
56
*/
57
57
burn_block_time_iso : string ;
58
+ /**
59
+ * Hash of the anchor chain block
60
+ * @type {string }
61
+ * @memberof Block
62
+ */
63
+ burn_block_hash : string ;
64
+ /**
65
+ * Height of the anchor chain block
66
+ * @type {number }
67
+ * @memberof Block
68
+ */
69
+ burn_block_height : number ;
70
+ /**
71
+ * Anchor chain transaction ID
72
+ * @type {string }
73
+ * @memberof Block
74
+ */
75
+ miner_txid : string ;
58
76
/**
59
77
* List of transactions included in the block
60
78
* @type {Array<string> }
@@ -79,6 +97,9 @@ export function BlockFromJSONTyped(json: any, ignoreDiscriminator: boolean): Blo
79
97
'parent_block_hash' : json [ 'parent_block_hash' ] ,
80
98
'burn_block_time' : json [ 'burn_block_time' ] ,
81
99
'burn_block_time_iso' : json [ 'burn_block_time_iso' ] ,
100
+ 'burn_block_hash' : json [ 'burn_block_hash' ] ,
101
+ 'burn_block_height' : json [ 'burn_block_height' ] ,
102
+ 'miner_txid' : json [ 'miner_txid' ] ,
82
103
'txs' : json [ 'txs' ] ,
83
104
} ;
84
105
}
@@ -98,6 +119,9 @@ export function BlockToJSON(value?: Block | null): any {
98
119
'parent_block_hash' : value . parent_block_hash ,
99
120
'burn_block_time' : value . burn_block_time ,
100
121
'burn_block_time_iso' : value . burn_block_time_iso ,
122
+ 'burn_block_hash' : value . burn_block_hash ,
123
+ 'burn_block_height' : value . burn_block_height ,
124
+ 'miner_txid' : value . miner_txid ,
101
125
'txs' : value . txs ,
102
126
} ;
103
127
}
0 commit comments