mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-26 23:59: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:211](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L211)
|
|
|
|
## Properties
|
|
|
|
### bits
|
|
|
|
> **bits**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:216](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L216)
|
|
|
|
Compact target (bits)
|
|
|
|
***
|
|
|
|
### difficulty
|
|
|
|
> **difficulty**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:218](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L218)
|
|
|
|
Block difficulty
|
|
|
|
***
|
|
|
|
### extras
|
|
|
|
> **extras**: [`BlockExtras`](BlockExtras.md)
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:225](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L225)
|
|
|
|
Extended block data
|
|
|
|
***
|
|
|
|
### height
|
|
|
|
> **height**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:213](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L213)
|
|
|
|
Block height
|
|
|
|
***
|
|
|
|
### id
|
|
|
|
> **id**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:212](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L212)
|
|
|
|
Block hash
|
|
|
|
***
|
|
|
|
### mediantime
|
|
|
|
> **mediantime**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:224](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L224)
|
|
|
|
Median time of the last 11 blocks
|
|
|
|
***
|
|
|
|
### merkleRoot
|
|
|
|
> **merkleRoot**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:219](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L219)
|
|
|
|
Merkle root of the transaction tree
|
|
|
|
***
|
|
|
|
### nonce
|
|
|
|
> **nonce**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:217](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L217)
|
|
|
|
Nonce
|
|
|
|
***
|
|
|
|
### previousblockhash
|
|
|
|
> **previousblockhash**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:223](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L223)
|
|
|
|
Previous block hash
|
|
|
|
***
|
|
|
|
### size
|
|
|
|
> **size**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:221](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L221)
|
|
|
|
Block size in bytes
|
|
|
|
***
|
|
|
|
### timestamp
|
|
|
|
> **timestamp**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:215](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L215)
|
|
|
|
Block timestamp (Unix time)
|
|
|
|
***
|
|
|
|
### txCount
|
|
|
|
> **txCount**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:220](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L220)
|
|
|
|
Number of transactions
|
|
|
|
***
|
|
|
|
### version
|
|
|
|
> **version**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:214](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L214)
|
|
|
|
Block version
|
|
|
|
***
|
|
|
|
### weight
|
|
|
|
> **weight**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:222](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L222)
|
|
|
|
Block weight in weight units
|