mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-06-30 06:02:10 -07:00
160 lines
4.0 KiB
Markdown
160 lines
4.0 KiB
Markdown
[**brk-client**](../README.md)
|
|
|
|
***
|
|
|
|
[brk-client](../globals.md) / BlockInfoV1
|
|
|
|
# Interface: BlockInfoV1
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:238](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L238)
|
|
|
|
## Properties
|
|
|
|
### bits
|
|
|
|
> **bits**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:243](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L243)
|
|
|
|
Compact target (bits)
|
|
|
|
***
|
|
|
|
### difficulty
|
|
|
|
> **difficulty**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:245](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L245)
|
|
|
|
Block difficulty
|
|
|
|
***
|
|
|
|
### extras
|
|
|
|
> **extras**: [`BlockExtras`](BlockExtras.md)
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:253](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L253)
|
|
|
|
Extended block data
|
|
|
|
***
|
|
|
|
### height
|
|
|
|
> **height**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:240](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L240)
|
|
|
|
Block height
|
|
|
|
***
|
|
|
|
### id
|
|
|
|
> **id**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:239](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L239)
|
|
|
|
Block hash
|
|
|
|
***
|
|
|
|
### mediantime
|
|
|
|
> **mediantime**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:251](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L251)
|
|
|
|
Median time of the last 11 blocks
|
|
|
|
***
|
|
|
|
### merkleRoot
|
|
|
|
> **merkleRoot**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:246](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L246)
|
|
|
|
Merkle root of the transaction tree
|
|
|
|
***
|
|
|
|
### nonce
|
|
|
|
> **nonce**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:244](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L244)
|
|
|
|
Nonce
|
|
|
|
***
|
|
|
|
### previousblockhash
|
|
|
|
> **previousblockhash**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:250](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L250)
|
|
|
|
Previous block hash
|
|
|
|
***
|
|
|
|
### size
|
|
|
|
> **size**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:248](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L248)
|
|
|
|
Block size in bytes
|
|
|
|
***
|
|
|
|
### stale?
|
|
|
|
> `optional` **stale?**: `boolean`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:252](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L252)
|
|
|
|
Whether this block has been replaced by a longer chain
|
|
|
|
***
|
|
|
|
### timestamp
|
|
|
|
> **timestamp**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:242](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L242)
|
|
|
|
Block timestamp (Unix time)
|
|
|
|
***
|
|
|
|
### txCount
|
|
|
|
> **txCount**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:247](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L247)
|
|
|
|
Number of transactions
|
|
|
|
***
|
|
|
|
### version
|
|
|
|
> **version**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:241](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L241)
|
|
|
|
Block version
|
|
|
|
***
|
|
|
|
### weight
|
|
|
|
> **weight**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:249](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L249)
|
|
|
|
Block weight in weight units
|