mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 06:39:58 -07:00
150 lines
3.7 KiB
Markdown
150 lines
3.7 KiB
Markdown
[**brk-client**](../README.md)
|
|
|
|
***
|
|
|
|
[brk-client](../globals.md) / BlockInfoV1
|
|
|
|
# Interface: BlockInfoV1
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:192](https://github.com/bitcoinresearchkit/brk/blob/5bf06530ce84cd1829c2f934e5baded9c9125d45/modules/brk-client/index.js#L192)
|
|
|
|
## Properties
|
|
|
|
### bits
|
|
|
|
> **bits**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:204](https://github.com/bitcoinresearchkit/brk/blob/5bf06530ce84cd1829c2f934e5baded9c9125d45/modules/brk-client/index.js#L204)
|
|
|
|
Compact target (bits)
|
|
|
|
***
|
|
|
|
### difficulty
|
|
|
|
> **difficulty**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:205](https://github.com/bitcoinresearchkit/brk/blob/5bf06530ce84cd1829c2f934e5baded9c9125d45/modules/brk-client/index.js#L205)
|
|
|
|
Block difficulty
|
|
|
|
***
|
|
|
|
### extras
|
|
|
|
> **extras**: [`BlockExtras`](BlockExtras.md)
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:206](https://github.com/bitcoinresearchkit/brk/blob/5bf06530ce84cd1829c2f934e5baded9c9125d45/modules/brk-client/index.js#L206)
|
|
|
|
Extended block data
|
|
|
|
***
|
|
|
|
### height
|
|
|
|
> **height**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:194](https://github.com/bitcoinresearchkit/brk/blob/5bf06530ce84cd1829c2f934e5baded9c9125d45/modules/brk-client/index.js#L194)
|
|
|
|
Block height
|
|
|
|
***
|
|
|
|
### id
|
|
|
|
> **id**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:193](https://github.com/bitcoinresearchkit/brk/blob/5bf06530ce84cd1829c2f934e5baded9c9125d45/modules/brk-client/index.js#L193)
|
|
|
|
Block hash
|
|
|
|
***
|
|
|
|
### mediantime
|
|
|
|
> **mediantime**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:202](https://github.com/bitcoinresearchkit/brk/blob/5bf06530ce84cd1829c2f934e5baded9c9125d45/modules/brk-client/index.js#L202)
|
|
|
|
Median time of the last 11 blocks
|
|
|
|
***
|
|
|
|
### merkleRoot
|
|
|
|
> **merkleRoot**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:200](https://github.com/bitcoinresearchkit/brk/blob/5bf06530ce84cd1829c2f934e5baded9c9125d45/modules/brk-client/index.js#L200)
|
|
|
|
Merkle root of the transaction tree
|
|
|
|
***
|
|
|
|
### nonce
|
|
|
|
> **nonce**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:203](https://github.com/bitcoinresearchkit/brk/blob/5bf06530ce84cd1829c2f934e5baded9c9125d45/modules/brk-client/index.js#L203)
|
|
|
|
Nonce
|
|
|
|
***
|
|
|
|
### previousblockhash
|
|
|
|
> **previousblockhash**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:201](https://github.com/bitcoinresearchkit/brk/blob/5bf06530ce84cd1829c2f934e5baded9c9125d45/modules/brk-client/index.js#L201)
|
|
|
|
Previous block hash
|
|
|
|
***
|
|
|
|
### size
|
|
|
|
> **size**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:198](https://github.com/bitcoinresearchkit/brk/blob/5bf06530ce84cd1829c2f934e5baded9c9125d45/modules/brk-client/index.js#L198)
|
|
|
|
Block size in bytes
|
|
|
|
***
|
|
|
|
### timestamp
|
|
|
|
> **timestamp**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:196](https://github.com/bitcoinresearchkit/brk/blob/5bf06530ce84cd1829c2f934e5baded9c9125d45/modules/brk-client/index.js#L196)
|
|
|
|
Block timestamp (Unix time)
|
|
|
|
***
|
|
|
|
### txCount
|
|
|
|
> **txCount**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:197](https://github.com/bitcoinresearchkit/brk/blob/5bf06530ce84cd1829c2f934e5baded9c9125d45/modules/brk-client/index.js#L197)
|
|
|
|
Number of transactions
|
|
|
|
***
|
|
|
|
### version
|
|
|
|
> **version**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:195](https://github.com/bitcoinresearchkit/brk/blob/5bf06530ce84cd1829c2f934e5baded9c9125d45/modules/brk-client/index.js#L195)
|
|
|
|
Block version
|
|
|
|
***
|
|
|
|
### weight
|
|
|
|
> **weight**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:199](https://github.com/bitcoinresearchkit/brk/blob/5bf06530ce84cd1829c2f934e5baded9c9125d45/modules/brk-client/index.js#L199)
|
|
|
|
Block weight in weight units
|