mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 22:59:58 -07:00
150 lines
3.8 KiB
Markdown
150 lines
3.8 KiB
Markdown
[**brk-client**](../README.md)
|
|
|
|
***
|
|
|
|
[brk-client](../globals.md) / BlockInfo
|
|
|
|
# Interface: BlockInfo
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:171](https://github.com/bitcoinresearchkit/brk/blob/83edef4806773ef7225b7c0de863c44bd953169d/modules/brk-client/index.js#L171)
|
|
|
|
## Properties
|
|
|
|
### bits
|
|
|
|
> **bits**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:178](https://github.com/bitcoinresearchkit/brk/blob/83edef4806773ef7225b7c0de863c44bd953169d/modules/brk-client/index.js#L178)
|
|
|
|
Compact target (bits)
|
|
|
|
***
|
|
|
|
### difficulty
|
|
|
|
> **difficulty**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:185](https://github.com/bitcoinresearchkit/brk/blob/83edef4806773ef7225b7c0de863c44bd953169d/modules/brk-client/index.js#L185)
|
|
|
|
Block difficulty
|
|
|
|
***
|
|
|
|
### height
|
|
|
|
> **height**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:173](https://github.com/bitcoinresearchkit/brk/blob/83edef4806773ef7225b7c0de863c44bd953169d/modules/brk-client/index.js#L173)
|
|
|
|
Block height
|
|
|
|
***
|
|
|
|
### id
|
|
|
|
> **id**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:172](https://github.com/bitcoinresearchkit/brk/blob/83edef4806773ef7225b7c0de863c44bd953169d/modules/brk-client/index.js#L172)
|
|
|
|
Block hash
|
|
|
|
***
|
|
|
|
### mediantime
|
|
|
|
> **mediantime**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:184](https://github.com/bitcoinresearchkit/brk/blob/83edef4806773ef7225b7c0de863c44bd953169d/modules/brk-client/index.js#L184)
|
|
|
|
Median time of the last 11 blocks
|
|
|
|
***
|
|
|
|
### merkleRoot
|
|
|
|
> **merkleRoot**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:176](https://github.com/bitcoinresearchkit/brk/blob/83edef4806773ef7225b7c0de863c44bd953169d/modules/brk-client/index.js#L176)
|
|
|
|
Merkle root of the transaction tree
|
|
|
|
***
|
|
|
|
### nonce
|
|
|
|
> **nonce**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:179](https://github.com/bitcoinresearchkit/brk/blob/83edef4806773ef7225b7c0de863c44bd953169d/modules/brk-client/index.js#L179)
|
|
|
|
Nonce used to produce a valid block hash
|
|
|
|
***
|
|
|
|
### previousblockhash
|
|
|
|
> **previousblockhash**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:175](https://github.com/bitcoinresearchkit/brk/blob/83edef4806773ef7225b7c0de863c44bd953169d/modules/brk-client/index.js#L175)
|
|
|
|
Previous block hash
|
|
|
|
***
|
|
|
|
### size
|
|
|
|
> **size**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:182](https://github.com/bitcoinresearchkit/brk/blob/83edef4806773ef7225b7c0de863c44bd953169d/modules/brk-client/index.js#L182)
|
|
|
|
Block size in bytes
|
|
|
|
***
|
|
|
|
### time
|
|
|
|
> **time**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:177](https://github.com/bitcoinresearchkit/brk/blob/83edef4806773ef7225b7c0de863c44bd953169d/modules/brk-client/index.js#L177)
|
|
|
|
Block timestamp as claimed by the miner (Unix time)
|
|
|
|
***
|
|
|
|
### timestamp
|
|
|
|
> **timestamp**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:180](https://github.com/bitcoinresearchkit/brk/blob/83edef4806773ef7225b7c0de863c44bd953169d/modules/brk-client/index.js#L180)
|
|
|
|
Block timestamp (Unix time)
|
|
|
|
***
|
|
|
|
### txCount
|
|
|
|
> **txCount**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:181](https://github.com/bitcoinresearchkit/brk/blob/83edef4806773ef7225b7c0de863c44bd953169d/modules/brk-client/index.js#L181)
|
|
|
|
Number of transactions in the block
|
|
|
|
***
|
|
|
|
### version
|
|
|
|
> **version**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:174](https://github.com/bitcoinresearchkit/brk/blob/83edef4806773ef7225b7c0de863c44bd953169d/modules/brk-client/index.js#L174)
|
|
|
|
Block version, used for soft fork signaling
|
|
|
|
***
|
|
|
|
### weight
|
|
|
|
> **weight**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:183](https://github.com/bitcoinresearchkit/brk/blob/83edef4806773ef7225b7c0de863c44bd953169d/modules/brk-client/index.js#L183)
|
|
|
|
Block weight in weight units
|