mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-06-29 21:52:09 -07:00
140 lines
3.4 KiB
Markdown
140 lines
3.4 KiB
Markdown
[**brk-client**](../README.md)
|
|
|
|
***
|
|
|
|
[brk-client](../globals.md) / BlockInfo
|
|
|
|
# Interface: BlockInfo
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:220](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L220)
|
|
|
|
## Properties
|
|
|
|
### bits
|
|
|
|
> **bits**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:225](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L225)
|
|
|
|
Compact target (bits)
|
|
|
|
***
|
|
|
|
### difficulty
|
|
|
|
> **difficulty**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:227](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L227)
|
|
|
|
Block difficulty
|
|
|
|
***
|
|
|
|
### height
|
|
|
|
> **height**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:222](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L222)
|
|
|
|
Block height
|
|
|
|
***
|
|
|
|
### id
|
|
|
|
> **id**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:221](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L221)
|
|
|
|
Block hash
|
|
|
|
***
|
|
|
|
### mediantime
|
|
|
|
> **mediantime**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:233](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L233)
|
|
|
|
Median time of the last 11 blocks
|
|
|
|
***
|
|
|
|
### merkleRoot
|
|
|
|
> **merkleRoot**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:228](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L228)
|
|
|
|
Merkle root of the transaction tree
|
|
|
|
***
|
|
|
|
### nonce
|
|
|
|
> **nonce**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:226](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L226)
|
|
|
|
Nonce
|
|
|
|
***
|
|
|
|
### previousblockhash
|
|
|
|
> **previousblockhash**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:232](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L232)
|
|
|
|
Previous block hash
|
|
|
|
***
|
|
|
|
### size
|
|
|
|
> **size**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:230](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L230)
|
|
|
|
Block size in bytes
|
|
|
|
***
|
|
|
|
### timestamp
|
|
|
|
> **timestamp**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:224](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L224)
|
|
|
|
Block timestamp (Unix time)
|
|
|
|
***
|
|
|
|
### txCount
|
|
|
|
> **txCount**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:229](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L229)
|
|
|
|
Number of transactions
|
|
|
|
***
|
|
|
|
### version
|
|
|
|
> **version**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:223](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L223)
|
|
|
|
Block version
|
|
|
|
***
|
|
|
|
### weight
|
|
|
|
> **weight**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:231](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L231)
|
|
|
|
Block weight in weight units
|