mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-06-30 06:02:10 -07:00
docs: update generated docs
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
# Class: BrkClient
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:7874](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L7874)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:7895](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L7895)
|
||||
|
||||
Main BRK client with series tree and API methods
|
||||
|
||||
@@ -20,7 +20,7 @@ Main BRK client with series tree and API methods
|
||||
|
||||
> **new BrkClient**(`options`): `BrkClient`
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:9067](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L9067)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:9088](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L9088)
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -42,7 +42,7 @@ Defined in: [Developer/brk/modules/brk-client/index.js:9067](https://github.com/
|
||||
|
||||
> **\_browserCache**: `Cache` \| `null`
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:1844](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L1844)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:1865](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L1865)
|
||||
|
||||
#### Inherited from
|
||||
|
||||
@@ -54,7 +54,7 @@ Defined in: [Developer/brk/modules/brk-client/index.js:1844](https://github.com/
|
||||
|
||||
> **\_browserCachePromise**: `Promise`\<`Cache` \| `null`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:1842](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L1842)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:1863](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L1863)
|
||||
|
||||
#### Inherited from
|
||||
|
||||
@@ -66,7 +66,7 @@ Defined in: [Developer/brk/modules/brk-client/index.js:1842](https://github.com/
|
||||
|
||||
> **\_memCache**: `Map`\<`string`, [`_MemEntry`](../type-aliases/MemEntry.md)\<`unknown`\>\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:1851](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L1851)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:1872](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L1872)
|
||||
|
||||
#### Inherited from
|
||||
|
||||
@@ -78,7 +78,7 @@ Defined in: [Developer/brk/modules/brk-client/index.js:1851](https://github.com/
|
||||
|
||||
> **series**: [`SeriesTree`](../interfaces/SeriesTree.md)
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:9070](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L9070)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:9091](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L9091)
|
||||
|
||||
## Methods
|
||||
|
||||
@@ -86,7 +86,7 @@ Defined in: [Developer/brk/modules/brk-client/index.js:9070](https://github.com/
|
||||
|
||||
> **\_fetchSeriesData**\<`T`\>(`path`, `onValue?`): `Promise`\<[`DateSeriesData`](../type-aliases/DateSeriesData.md)\<`T`\>\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:2090](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L2090)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:2111](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L2111)
|
||||
|
||||
Fetch series data and wrap with helper methods (internal)
|
||||
|
||||
@@ -120,7 +120,7 @@ Fetch series data and wrap with helper methods (internal)
|
||||
|
||||
> **\_getCached**\<`T`\>(`path`, `parse`, `options?`): `Promise`\<`T`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:1918](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L1918)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:1939](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L1939)
|
||||
|
||||
Make a GET request with layered caching.
|
||||
|
||||
@@ -179,7 +179,7 @@ Response body reader
|
||||
|
||||
> **\_memGet**\<`T`\>(`key`): [`_MemEntry`](../type-aliases/MemEntry.md)\<`T`\> \| `undefined`
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:1859](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L1859)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:1880](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L1880)
|
||||
|
||||
#### Type Parameters
|
||||
|
||||
@@ -207,7 +207,7 @@ Defined in: [Developer/brk/modules/brk-client/index.js:1859](https://github.com/
|
||||
|
||||
> **\_memSet**(`key`, `etag`, `value`): `void`
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:1873](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L1873)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:1894](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L1894)
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -237,7 +237,7 @@ Defined in: [Developer/brk/modules/brk-client/index.js:1873](https://github.com/
|
||||
|
||||
> **dateToIndex**(`index`, `d`): `number`
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:9059](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L9059)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:9080](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L9080)
|
||||
|
||||
Convert a Date to an index value for date-based indexes.
|
||||
|
||||
@@ -265,7 +265,7 @@ The date to convert
|
||||
|
||||
> **get**(`path`, `options?`): `Promise`\<`Response`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:1888](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L1888)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:1909](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L1909)
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -297,7 +297,7 @@ Defined in: [Developer/brk/modules/brk-client/index.js:1888](https://github.com/
|
||||
|
||||
> **getAddress**(`address`, `options?`): `Promise`\<[`AddrStats`](../interfaces/AddrStats.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11492](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11492)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11530](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11530)
|
||||
|
||||
Address information
|
||||
|
||||
@@ -337,7 +337,7 @@ Endpoint: `GET /api/address/{address}`
|
||||
|
||||
> **getAddressConfirmedTxs**(`address`, `options?`): `Promise`\<[`Transaction`](../interfaces/Transaction.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11528](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11528)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11566](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11566)
|
||||
|
||||
Address confirmed transactions
|
||||
|
||||
@@ -377,7 +377,7 @@ Endpoint: `GET /api/address/{address}/txs/chain`
|
||||
|
||||
> **getAddressConfirmedTxsAfter**(`address`, `after_txid`, `options?`): `Promise`\<[`Transaction`](../interfaces/Transaction.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11547](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11547)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11585](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11585)
|
||||
|
||||
Address confirmed transactions (paginated)
|
||||
|
||||
@@ -419,11 +419,53 @@ Last txid from the previous page (return transactions strictly older than this)
|
||||
|
||||
***
|
||||
|
||||
### getAddressHashPrefixMatches()
|
||||
|
||||
> **getAddressHashPrefixMatches**(`addr_type`, `prefix`, `options?`): `Promise`\<[`AddrHashPrefixMatches`](../interfaces/AddrHashPrefixMatches.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11512](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11512)
|
||||
|
||||
Address hash-prefix matches
|
||||
|
||||
Find addresses by address type and address-payload hash prefix. Intended for privacy-preserving client-side wallet discovery without sending raw addresses or xpubs. Fetch metadata for the returned addresses through `/api/address/{address}`.
|
||||
|
||||
Endpoint: `GET /api/address/hash-prefix/{addr_type}/{prefix}`
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### addr\_type
|
||||
|
||||
[`OutputType`](../type-aliases/OutputType.md)
|
||||
|
||||
##### prefix
|
||||
|
||||
`string`
|
||||
|
||||
##### options?
|
||||
|
||||
###### cache?
|
||||
|
||||
`boolean`
|
||||
|
||||
###### onValue?
|
||||
|
||||
(`value`) => `void`
|
||||
|
||||
###### signal?
|
||||
|
||||
`AbortSignal`
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`AddrHashPrefixMatches`](../interfaces/AddrHashPrefixMatches.md)\>
|
||||
|
||||
***
|
||||
|
||||
### getAddressMempoolTxs()
|
||||
|
||||
> **getAddressMempoolTxs**(`address`, `options?`): `Promise`\<[`Transaction`](../interfaces/Transaction.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11565](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11565)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11603](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11603)
|
||||
|
||||
Address mempool transactions
|
||||
|
||||
@@ -463,7 +505,7 @@ Endpoint: `GET /api/address/{address}/txs/mempool`
|
||||
|
||||
> **getAddressTxs**(`address`, `options?`): `Promise`\<[`Transaction`](../interfaces/Transaction.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11510](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11510)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11548](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11548)
|
||||
|
||||
Address transactions
|
||||
|
||||
@@ -503,7 +545,7 @@ Endpoint: `GET /api/address/{address}/txs`
|
||||
|
||||
> **getAddressUtxos**(`address`, `options?`): `Promise`\<[`Utxo`](../interfaces/Utxo.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11583](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11583)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11621](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11621)
|
||||
|
||||
Address UTXOs
|
||||
|
||||
@@ -543,7 +585,7 @@ Endpoint: `GET /api/address/{address}/utxo`
|
||||
|
||||
> **getApi**(`options?`): `Promise`\<`any`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12724](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12724)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12762](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12762)
|
||||
|
||||
Compact OpenAPI specification
|
||||
|
||||
@@ -577,7 +619,7 @@ Endpoint: `GET /api.json`
|
||||
|
||||
> **getBlock**(`hash`, `options?`): `Promise`\<[`BlockInfo`](../interfaces/BlockInfo.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11619](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11619)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11657](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11657)
|
||||
|
||||
Block information
|
||||
|
||||
@@ -617,7 +659,7 @@ Endpoint: `GET /api/block/{hash}`
|
||||
|
||||
> **getBlockByHeight**(`height`, `options?`): `Promise`\<`string`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11673](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11673)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11711](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11711)
|
||||
|
||||
Block hash by height
|
||||
|
||||
@@ -657,7 +699,7 @@ Endpoint: `GET /api/block-height/{height}`
|
||||
|
||||
> **getBlockByTimestamp**(`timestamp`, `options?`): `Promise`\<[`BlockTimestamp`](../interfaces/BlockTimestamp.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11691](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11691)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11729](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11729)
|
||||
|
||||
Block by timestamp
|
||||
|
||||
@@ -697,7 +739,7 @@ Endpoint: `GET /api/v1/mining/blocks/timestamp/{timestamp}`
|
||||
|
||||
> **getBlockFeeRates**(`time_period`, `options?`): `Promise`\<[`BlockFeeRatesEntry`](../interfaces/BlockFeeRatesEntry.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12182](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12182)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12220](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12220)
|
||||
|
||||
Block fee rates
|
||||
|
||||
@@ -737,7 +779,7 @@ Endpoint: `GET /api/v1/mining/blocks/fee-rates/{time_period}`
|
||||
|
||||
> **getBlockFees**(`time_period`, `options?`): `Promise`\<[`BlockFeesEntry`](../interfaces/BlockFeesEntry.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12146](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12146)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12184](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12184)
|
||||
|
||||
Block fees
|
||||
|
||||
@@ -777,7 +819,7 @@ Endpoint: `GET /api/v1/mining/blocks/fees/{time_period}`
|
||||
|
||||
> **getBlockHeader**(`hash`, `options?`): `Promise`\<`string`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11655](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11655)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11693](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11693)
|
||||
|
||||
Block header
|
||||
|
||||
@@ -817,7 +859,7 @@ Endpoint: `GET /api/block/{hash}/header`
|
||||
|
||||
> **getBlockRaw**(`hash`, `options?`): `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11709](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11709)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11747](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11747)
|
||||
|
||||
Raw block
|
||||
|
||||
@@ -857,7 +899,7 @@ Endpoint: `GET /api/block/{hash}/raw`
|
||||
|
||||
> **getBlockRewards**(`time_period`, `options?`): `Promise`\<[`BlockRewardsEntry`](../interfaces/BlockRewardsEntry.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12164](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12164)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12202](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12202)
|
||||
|
||||
Block rewards
|
||||
|
||||
@@ -897,7 +939,7 @@ Endpoint: `GET /api/v1/mining/blocks/rewards/{time_period}`
|
||||
|
||||
> **getBlocks**(`options?`): `Promise`\<[`BlockInfo`](../interfaces/BlockInfo.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11849](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11849)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11887](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11887)
|
||||
|
||||
Recent blocks
|
||||
|
||||
@@ -933,7 +975,7 @@ Endpoint: `GET /api/blocks`
|
||||
|
||||
> **getBlocksFromHeight**(`height`, `options?`): `Promise`\<[`BlockInfo`](../interfaces/BlockInfo.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11867](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11867)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11905](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11905)
|
||||
|
||||
Blocks from height
|
||||
|
||||
@@ -973,7 +1015,7 @@ Endpoint: `GET /api/blocks/{height}`
|
||||
|
||||
> **getBlockSizesWeights**(`time_period`, `options?`): `Promise`\<[`BlockSizesWeights`](../interfaces/BlockSizesWeights.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12200](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12200)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12238](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12238)
|
||||
|
||||
Block sizes and weights
|
||||
|
||||
@@ -1013,7 +1055,7 @@ Endpoint: `GET /api/v1/mining/blocks/sizes-weights/{time_period}`
|
||||
|
||||
> **getBlockStatus**(`hash`, `options?`): `Promise`\<[`BlockStatus`](../interfaces/BlockStatus.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11727](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11727)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11765](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11765)
|
||||
|
||||
Block status
|
||||
|
||||
@@ -1053,7 +1095,7 @@ Endpoint: `GET /api/block/{hash}/status`
|
||||
|
||||
> **getBlocksV1**(`options?`): `Promise`\<[`BlockInfoV1`](../interfaces/BlockInfoV1.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11883](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11883)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11921](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11921)
|
||||
|
||||
Recent blocks with extras
|
||||
|
||||
@@ -1089,7 +1131,7 @@ Endpoint: `GET /api/v1/blocks`
|
||||
|
||||
> **getBlocksV1FromHeight**(`height`, `options?`): `Promise`\<[`BlockInfoV1`](../interfaces/BlockInfoV1.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11901](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11901)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11939](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11939)
|
||||
|
||||
Blocks from height with extras
|
||||
|
||||
@@ -1129,7 +1171,7 @@ Endpoint: `GET /api/v1/blocks/{height}`
|
||||
|
||||
> **getBlockTemplate**(`options?`): `Promise`\<[`BlockTemplate`](../interfaces/BlockTemplate.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12356](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12356)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12394](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12394)
|
||||
|
||||
Projected next block template
|
||||
|
||||
@@ -1163,7 +1205,7 @@ Endpoint: `GET /api/v1/mempool/block-template`
|
||||
|
||||
> **getBlockTemplateDiff**(`hash`, `options?`): `Promise`\<[`BlockTemplateDiff`](../interfaces/BlockTemplateDiff.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12372](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12372)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12410](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12410)
|
||||
|
||||
Block template diff since hash
|
||||
|
||||
@@ -1201,7 +1243,7 @@ Endpoint: `GET /api/v1/mempool/block-template/diff/{hash}`
|
||||
|
||||
> **getBlockTipHash**(`options?`): `Promise`\<`string`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11759](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11759)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11797](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11797)
|
||||
|
||||
Block tip hash
|
||||
|
||||
@@ -1237,7 +1279,7 @@ Endpoint: `GET /api/blocks/tip/hash`
|
||||
|
||||
> **getBlockTipHeight**(`options?`): `Promise`\<`number`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11743](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11743)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11781](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11781)
|
||||
|
||||
Block tip height
|
||||
|
||||
@@ -1273,7 +1315,7 @@ Endpoint: `GET /api/blocks/tip/height`
|
||||
|
||||
> **getBlockTxid**(`hash`, `index`, `options?`): `Promise`\<`string`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11778](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11778)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11816](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11816)
|
||||
|
||||
Transaction ID at index
|
||||
|
||||
@@ -1321,7 +1363,7 @@ Transaction index within the block (0-based)
|
||||
|
||||
> **getBlockTxids**(`hash`, `options?`): `Promise`\<`string`[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11796](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11796)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11834](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11834)
|
||||
|
||||
Block transaction IDs
|
||||
|
||||
@@ -1361,7 +1403,7 @@ Endpoint: `GET /api/block/{hash}/txids`
|
||||
|
||||
> **getBlockTxs**(`hash`, `options?`): `Promise`\<[`Transaction`](../interfaces/Transaction.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11814](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11814)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11852](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11852)
|
||||
|
||||
Block transactions
|
||||
|
||||
@@ -1401,7 +1443,7 @@ Endpoint: `GET /api/block/{hash}/txs`
|
||||
|
||||
> **getBlockTxsFromIndex**(`hash`, `start_index`, `options?`): `Promise`\<[`Transaction`](../interfaces/Transaction.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11833](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11833)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11871](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11871)
|
||||
|
||||
Block transactions (paginated)
|
||||
|
||||
@@ -1449,7 +1491,7 @@ Starting transaction index within the block (0-based)
|
||||
|
||||
> **getBlockV1**(`hash`, `options?`): `Promise`\<[`BlockInfoV1`](../interfaces/BlockInfoV1.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11637](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11637)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11675](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11675)
|
||||
|
||||
Block (v1)
|
||||
|
||||
@@ -1489,7 +1531,7 @@ Endpoint: `GET /api/v1/block/{hash}`
|
||||
|
||||
> **getBytes**(`path`, `options?`): `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:2018](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L2018)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:2039](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L2039)
|
||||
|
||||
Make a GET request expecting binary data (application/octet-stream).
|
||||
Cached and supports `onValue`, same as `getJson`.
|
||||
@@ -1528,7 +1570,7 @@ Cached and supports `onValue`, same as `getJson`.
|
||||
|
||||
> **getCpfp**(`txid`, `options?`): `Promise`\<[`CpfpInfo`](../interfaces/CpfpInfo.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12494](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12494)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12532](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12532)
|
||||
|
||||
CPFP info
|
||||
|
||||
@@ -1568,7 +1610,7 @@ Endpoint: `GET /api/v1/cpfp/{txid}`
|
||||
|
||||
> **getDifficultyAdjustment**(`options?`): `Promise`\<[`DifficultyAdjustment`](../interfaces/DifficultyAdjustment.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11437](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11437)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11458](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11458)
|
||||
|
||||
Difficulty adjustment
|
||||
|
||||
@@ -1604,7 +1646,7 @@ Endpoint: `GET /api/v1/difficulty-adjustment`
|
||||
|
||||
> **getDifficultyAdjustments**(`options?`): `Promise`\<[`DifficultyAdjustmentEntry`](../interfaces/DifficultyAdjustmentEntry.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12092](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12092)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12130](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12130)
|
||||
|
||||
Difficulty adjustments (all time)
|
||||
|
||||
@@ -1640,7 +1682,7 @@ Endpoint: `GET /api/v1/mining/difficulty-adjustments`
|
||||
|
||||
> **getDifficultyAdjustmentsByPeriod**(`time_period`, `options?`): `Promise`\<[`DifficultyAdjustmentEntry`](../interfaces/DifficultyAdjustmentEntry.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12110](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12110)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12148](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12148)
|
||||
|
||||
Difficulty adjustments
|
||||
|
||||
@@ -1680,7 +1722,7 @@ Endpoint: `GET /api/v1/mining/difficulty-adjustments/{time_period}`
|
||||
|
||||
> **getDiskUsage**(`options?`): `Promise`\<[`DiskUsage`](../interfaces/DiskUsage.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11109](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11109)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11130](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11130)
|
||||
|
||||
Disk usage
|
||||
|
||||
@@ -1714,7 +1756,7 @@ Endpoint: `GET /api/server/disk`
|
||||
|
||||
> **getFullrbfReplacements**(`options?`): `Promise`\<[`ReplacementNode`](../interfaces/ReplacementNode.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12342](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12342)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12380](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12380)
|
||||
|
||||
Recent full-RBF replacements
|
||||
|
||||
@@ -1750,7 +1792,7 @@ Endpoint: `GET /api/v1/fullrbf/replacements`
|
||||
|
||||
> **getHashrate**(`options?`): `Promise`\<[`HashrateSummary`](../interfaces/HashrateSummary.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12058](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12058)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12096](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12096)
|
||||
|
||||
Network hashrate (all time)
|
||||
|
||||
@@ -1786,7 +1828,7 @@ Endpoint: `GET /api/v1/mining/hashrate`
|
||||
|
||||
> **getHashrateByPeriod**(`time_period`, `options?`): `Promise`\<[`HashrateSummary`](../interfaces/HashrateSummary.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12076](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12076)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12114](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12114)
|
||||
|
||||
Network hashrate
|
||||
|
||||
@@ -1826,7 +1868,7 @@ Endpoint: `GET /api/v1/mining/hashrate/{time_period}`
|
||||
|
||||
> **getHealth**(`options?`): `Promise`\<[`Health`](../interfaces/Health.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11067](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11067)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11088](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11088)
|
||||
|
||||
Health check
|
||||
|
||||
@@ -1860,7 +1902,7 @@ Endpoint: `GET /health`
|
||||
|
||||
> **getHistoricalPrice**(`timestamp?`, `options?`): `Promise`\<[`HistoricalPrice`](../interfaces/HistoricalPrice.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11471](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11471)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11492](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11492)
|
||||
|
||||
Historical price
|
||||
|
||||
@@ -1900,7 +1942,7 @@ Endpoint: `GET /api/v1/historical-price`
|
||||
|
||||
> **getIndexes**(`options?`): `Promise`\<[`IndexInfo`](../interfaces/IndexInfo.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11151](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11151)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11172](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11172)
|
||||
|
||||
List available indexes
|
||||
|
||||
@@ -1934,7 +1976,7 @@ Endpoint: `GET /api/series/indexes`
|
||||
|
||||
> **getJson**\<`T`\>(`path`, `options?`): `Promise`\<`T`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:1996](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L1996)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:2017](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L2017)
|
||||
|
||||
Make a GET request expecting a JSON response. Cached and supports `onValue`.
|
||||
|
||||
@@ -1978,7 +2020,7 @@ Make a GET request expecting a JSON response. Cached and supports `onValue`.
|
||||
|
||||
> **getLivePrice**(`options?`): `Promise`\<`number`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12386](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12386)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12424](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12424)
|
||||
|
||||
Live BTC/USD price
|
||||
|
||||
@@ -2012,7 +2054,7 @@ Endpoint: `GET /api/mempool/price`
|
||||
|
||||
> **getMempool**(`options?`): `Promise`\<[`MempoolInfo`](../interfaces/MempoolInfo.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12264](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12264)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12302](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12302)
|
||||
|
||||
Mempool statistics
|
||||
|
||||
@@ -2048,7 +2090,7 @@ Endpoint: `GET /api/mempool`
|
||||
|
||||
> **getMempoolBlocks**(`options?`): `Promise`\<[`MempoolBlock`](../interfaces/MempoolBlock.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12216](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12216)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12254](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12254)
|
||||
|
||||
Projected mempool blocks
|
||||
|
||||
@@ -2084,7 +2126,7 @@ Endpoint: `GET /api/v1/fees/mempool-blocks`
|
||||
|
||||
> **getMempoolHash**(`options?`): `Promise`\<`number`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12278](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12278)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12316](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12316)
|
||||
|
||||
Mempool content hash
|
||||
|
||||
@@ -2118,7 +2160,7 @@ Endpoint: `GET /api/mempool/hash`
|
||||
|
||||
> **getMempoolRecent**(`options?`): `Promise`\<[`MempoolRecentTx`](../interfaces/MempoolRecentTx.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12310](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12310)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12348](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12348)
|
||||
|
||||
Recent mempool transactions
|
||||
|
||||
@@ -2154,7 +2196,7 @@ Endpoint: `GET /api/mempool/recent`
|
||||
|
||||
> **getMempoolTxids**(`options?`): `Promise`\<`string`[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12294](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12294)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12332](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12332)
|
||||
|
||||
Mempool transaction IDs
|
||||
|
||||
@@ -2190,7 +2232,7 @@ Endpoint: `GET /api/mempool/txids`
|
||||
|
||||
> **getOpenapi**(`options?`): `Promise`\<`any`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12710](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12710)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12748](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12748)
|
||||
|
||||
OpenAPI specification
|
||||
|
||||
@@ -2224,7 +2266,7 @@ Endpoint: `GET /openapi.json`
|
||||
|
||||
> **getOracleHistogramOutputs**(`point`, `options?`): `Promise`\<`number`[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12460](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12460)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12498](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12498)
|
||||
|
||||
Output value histogram at height or day
|
||||
|
||||
@@ -2262,7 +2304,7 @@ Endpoint: `GET /api/oracle/histogram/outputs/{point}`
|
||||
|
||||
> **getOracleHistogramOutputsLive**(`options?`): `Promise`\<`number`[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12444](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12444)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12482](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12482)
|
||||
|
||||
Live output value histogram
|
||||
|
||||
@@ -2296,7 +2338,7 @@ Endpoint: `GET /api/oracle/histogram/outputs/live`
|
||||
|
||||
> **getOracleHistogramPayments**(`point`, `options?`): `Promise`\<`number`[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12430](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12430)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12468](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12468)
|
||||
|
||||
Payment output histogram at height or day
|
||||
|
||||
@@ -2334,7 +2376,7 @@ Endpoint: `GET /api/oracle/histogram/payments/{point}`
|
||||
|
||||
> **getOracleHistogramPaymentsLive**(`options?`): `Promise`\<`number`[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12414](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12414)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12452](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12452)
|
||||
|
||||
Live payment output histogram
|
||||
|
||||
@@ -2368,7 +2410,7 @@ Endpoint: `GET /api/oracle/histogram/payments/live`
|
||||
|
||||
> **getOraclePrice**(`options?`): `Promise`\<`number`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12400](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12400)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12438](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12438)
|
||||
|
||||
Live BTC/USD price
|
||||
|
||||
@@ -2402,7 +2444,7 @@ Endpoint: `GET /api/oracle/price`
|
||||
|
||||
> **getPool**(`slug`, `options?`): `Promise`\<[`PoolDetail`](../interfaces/PoolDetail.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11953](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11953)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11991](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11991)
|
||||
|
||||
Mining pool details
|
||||
|
||||
@@ -2442,7 +2484,7 @@ Endpoint: `GET /api/v1/mining/pool/{slug}`
|
||||
|
||||
> **getPoolBlocks**(`slug`, `options?`): `Promise`\<[`BlockInfoV1`](../interfaces/BlockInfoV1.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12023](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12023)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12061](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12061)
|
||||
|
||||
Mining pool blocks
|
||||
|
||||
@@ -2482,7 +2524,7 @@ Endpoint: `GET /api/v1/mining/pool/{slug}/blocks`
|
||||
|
||||
> **getPoolBlocksFrom**(`slug`, `height`, `options?`): `Promise`\<[`BlockInfoV1`](../interfaces/BlockInfoV1.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12042](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12042)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12080](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12080)
|
||||
|
||||
Mining pool blocks from height
|
||||
|
||||
@@ -2526,7 +2568,7 @@ Endpoint: `GET /api/v1/mining/pool/{slug}/blocks/{height}`
|
||||
|
||||
> **getPoolHashrate**(`slug`, `options?`): `Promise`\<[`PoolHashrateEntry`](../interfaces/PoolHashrateEntry.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12005](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12005)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12043](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12043)
|
||||
|
||||
Mining pool hashrate
|
||||
|
||||
@@ -2566,7 +2608,7 @@ Endpoint: `GET /api/v1/mining/pool/{slug}/hashrate`
|
||||
|
||||
> **getPools**(`options?`): `Promise`\<[`PoolInfo`](../interfaces/PoolInfo.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11917](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11917)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11955](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11955)
|
||||
|
||||
List all mining pools
|
||||
|
||||
@@ -2602,7 +2644,7 @@ Endpoint: `GET /api/v1/mining/pools`
|
||||
|
||||
> **getPoolsHashrate**(`options?`): `Promise`\<[`PoolHashrateEntry`](../interfaces/PoolHashrateEntry.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11969](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11969)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12007](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12007)
|
||||
|
||||
All pools hashrate (all time)
|
||||
|
||||
@@ -2638,7 +2680,7 @@ Endpoint: `GET /api/v1/mining/hashrate/pools`
|
||||
|
||||
> **getPoolsHashrateByPeriod**(`time_period`, `options?`): `Promise`\<[`PoolHashrateEntry`](../interfaces/PoolHashrateEntry.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11987](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11987)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12025](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12025)
|
||||
|
||||
All pools hashrate
|
||||
|
||||
@@ -2678,7 +2720,7 @@ Endpoint: `GET /api/v1/mining/hashrate/pools/{time_period}`
|
||||
|
||||
> **getPoolStats**(`time_period`, `options?`): `Promise`\<[`PoolsSummary`](../interfaces/PoolsSummary.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11935](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11935)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11973](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11973)
|
||||
|
||||
Mining pool statistics
|
||||
|
||||
@@ -2718,7 +2760,7 @@ Endpoint: `GET /api/v1/mining/pools/{time_period}`
|
||||
|
||||
> **getPreciseFees**(`options?`): `Promise`\<[`RecommendedFees`](../interfaces/RecommendedFees.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12248](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12248)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12286](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12286)
|
||||
|
||||
Precise recommended fees
|
||||
|
||||
@@ -2754,7 +2796,7 @@ Endpoint: `GET /api/v1/fees/precise`
|
||||
|
||||
> **getPrices**(`options?`): `Promise`\<[`Prices`](../interfaces/Prices.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11453](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11453)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11474](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11474)
|
||||
|
||||
Current BTC price
|
||||
|
||||
@@ -2790,7 +2832,7 @@ Endpoint: `GET /api/v1/prices`
|
||||
|
||||
> **getRecommendedFees**(`options?`): `Promise`\<[`RecommendedFees`](../interfaces/RecommendedFees.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12232](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12232)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12270](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12270)
|
||||
|
||||
Recommended fees
|
||||
|
||||
@@ -2826,7 +2868,7 @@ Endpoint: `GET /api/v1/fees/recommended`
|
||||
|
||||
> **getReplacements**(`options?`): `Promise`\<[`ReplacementNode`](../interfaces/ReplacementNode.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12326](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12326)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12364](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12364)
|
||||
|
||||
Recent RBF replacements
|
||||
|
||||
@@ -2862,7 +2904,7 @@ Endpoint: `GET /api/v1/replacements`
|
||||
|
||||
> **getRewardStats**(`block_count`, `options?`): `Promise`\<[`RewardStats`](../interfaces/RewardStats.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12128](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12128)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12166](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12166)
|
||||
|
||||
Mining reward statistics
|
||||
|
||||
@@ -2904,7 +2946,7 @@ Number of recent blocks to include
|
||||
|
||||
> **getSeries**(`series`, `index`, `start?`, `end?`, `limit?`, `format?`, `options?`): `Promise`\<`string` \| [`AnySeriesData`](../type-aliases/AnySeriesData.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11230](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11230)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11251](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11251)
|
||||
|
||||
Get series data
|
||||
|
||||
@@ -2974,7 +3016,7 @@ Format of the output
|
||||
|
||||
> **getSeriesBulk**(`series`, `index`, `start?`, `end?`, `limit?`, `format?`, `options?`): `Promise`\<`string` \| [`AnySeriesData`](../type-aliases/AnySeriesData.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11337](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11337)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11358](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11358)
|
||||
|
||||
Bulk series data
|
||||
|
||||
@@ -3044,7 +3086,7 @@ Format of the output
|
||||
|
||||
> **getSeriesCount**(`options?`): `Promise`\<[`SeriesCount`](../interfaces/SeriesCount.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11137](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11137)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11158](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11158)
|
||||
|
||||
Series count
|
||||
|
||||
@@ -3078,7 +3120,7 @@ Endpoint: `GET /api/series/count`
|
||||
|
||||
> **getSeriesData**(`series`, `index`, `start?`, `end?`, `limit?`, `format?`, `options?`): `Promise`\<`string` \| `boolean`[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11258](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11258)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11279](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11279)
|
||||
|
||||
Get raw series data
|
||||
|
||||
@@ -3148,7 +3190,7 @@ Format of the output
|
||||
|
||||
> **getSeriesInfo**(`series`, `options?`): `Promise`\<[`SeriesInfo`](../interfaces/SeriesInfo.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11209](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11209)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11230](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11230)
|
||||
|
||||
Get series info
|
||||
|
||||
@@ -3186,7 +3228,7 @@ Endpoint: `GET /api/series/{series}`
|
||||
|
||||
> **getSeriesLatest**(`series`, `index`, `options?`): `Promise`\<`any`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11282](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11282)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11303](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11303)
|
||||
|
||||
Get latest series value
|
||||
|
||||
@@ -3232,7 +3274,7 @@ Aggregation index
|
||||
|
||||
> **getSeriesLen**(`series`, `index`, `options?`): `Promise`\<`number`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11299](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11299)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11320](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11320)
|
||||
|
||||
Get series data length
|
||||
|
||||
@@ -3278,7 +3320,7 @@ Aggregation index
|
||||
|
||||
> **getSeriesTree**(`options?`): `Promise`\<[`TreeNode`](../type-aliases/TreeNode.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11123](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11123)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11144](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11144)
|
||||
|
||||
Series catalog
|
||||
|
||||
@@ -3312,7 +3354,7 @@ Endpoint: `GET /api/series`
|
||||
|
||||
> **getSeriesVersion**(`series`, `index`, `options?`): `Promise`\<`number`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11316](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11316)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11337](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11337)
|
||||
|
||||
Get series version
|
||||
|
||||
@@ -3358,7 +3400,7 @@ Aggregation index
|
||||
|
||||
> **getSyncStatus**(`options?`): `Promise`\<[`SyncStatus`](../interfaces/SyncStatus.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11095](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11095)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11116](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11116)
|
||||
|
||||
Sync status
|
||||
|
||||
@@ -3392,7 +3434,7 @@ Endpoint: `GET /api/server/sync`
|
||||
|
||||
> **getText**(`path`, `options?`): `Promise`\<`string`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:2007](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L2007)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:2028](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L2028)
|
||||
|
||||
Make a GET request expecting a text response (text/plain, text/csv, ...).
|
||||
Cached and supports `onValue`, same as `getJson`.
|
||||
@@ -3431,7 +3473,7 @@ Cached and supports `onValue`, same as `getJson`.
|
||||
|
||||
> **getTransactionTimes**(`txId`, `options?`): `Promise`\<`number`[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12675](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12675)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12713](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12713)
|
||||
|
||||
Transaction first-seen times
|
||||
|
||||
@@ -3473,7 +3515,7 @@ Transaction IDs to look up (max 250 per request).
|
||||
|
||||
> **getTx**(`txid`, `options?`): `Promise`\<[`Transaction`](../interfaces/Transaction.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12530](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12530)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12568](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12568)
|
||||
|
||||
Transaction information
|
||||
|
||||
@@ -3513,7 +3555,7 @@ Endpoint: `GET /api/tx/{txid}`
|
||||
|
||||
> **getTxByIndex**(`index`, `options?`): `Promise`\<`string`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12476](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12476)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12514](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12514)
|
||||
|
||||
Txid by index
|
||||
|
||||
@@ -3551,7 +3593,7 @@ Endpoint: `GET /api/tx-index/{index}`
|
||||
|
||||
> **getTxHex**(`txid`, `options?`): `Promise`\<`string`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12548](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12548)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12586](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12586)
|
||||
|
||||
Transaction hex
|
||||
|
||||
@@ -3591,7 +3633,7 @@ Endpoint: `GET /api/tx/{txid}/hex`
|
||||
|
||||
> **getTxMerkleblockProof**(`txid`, `options?`): `Promise`\<`string`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12566](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12566)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12604](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12604)
|
||||
|
||||
Transaction merkleblock proof
|
||||
|
||||
@@ -3631,7 +3673,7 @@ Endpoint: `GET /api/tx/{txid}/merkleblock-proof`
|
||||
|
||||
> **getTxMerkleProof**(`txid`, `options?`): `Promise`\<[`MerkleProof`](../interfaces/MerkleProof.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12584](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12584)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12622](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12622)
|
||||
|
||||
Transaction merkle proof
|
||||
|
||||
@@ -3671,7 +3713,7 @@ Endpoint: `GET /api/tx/{txid}/merkle-proof`
|
||||
|
||||
> **getTxOutspend**(`txid`, `vout`, `options?`): `Promise`\<[`TxOutspend`](../interfaces/TxOutspend.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12603](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12603)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12641](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12641)
|
||||
|
||||
Output spend status
|
||||
|
||||
@@ -3719,7 +3761,7 @@ Output index
|
||||
|
||||
> **getTxOutspends**(`txid`, `options?`): `Promise`\<[`TxOutspend`](../interfaces/TxOutspend.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12621](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12621)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12659](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12659)
|
||||
|
||||
All output spend statuses
|
||||
|
||||
@@ -3759,7 +3801,7 @@ Endpoint: `GET /api/tx/{txid}/outspends`
|
||||
|
||||
> **getTxRaw**(`txid`, `options?`): `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12639](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12639)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12677](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12677)
|
||||
|
||||
Transaction raw
|
||||
|
||||
@@ -3799,7 +3841,7 @@ Endpoint: `GET /api/tx/{txid}/raw`
|
||||
|
||||
> **getTxRbf**(`txid`, `options?`): `Promise`\<[`RbfResponse`](../interfaces/RbfResponse.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12512](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12512)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12550](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12550)
|
||||
|
||||
RBF replacement history
|
||||
|
||||
@@ -3839,7 +3881,7 @@ Endpoint: `GET /api/v1/tx/{txid}/rbf`
|
||||
|
||||
> **getTxStatus**(`txid`, `options?`): `Promise`\<[`TxStatus`](../interfaces/TxStatus.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12657](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12657)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12695](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12695)
|
||||
|
||||
Transaction status
|
||||
|
||||
@@ -3879,7 +3921,7 @@ Endpoint: `GET /api/tx/{txid}/status`
|
||||
|
||||
> **getUrpd**(`cohort`, `agg?`, `options?`): `Promise`\<[`Urpd`](../interfaces/Urpd.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11395](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11395)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11416](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11416)
|
||||
|
||||
Latest URPD
|
||||
|
||||
@@ -3925,7 +3967,7 @@ Aggregation strategy. Default: raw (no aggregation). Accepts `bucket` as alias.
|
||||
|
||||
> **getUrpdAt**(`cohort`, `date`, `agg?`, `options?`): `Promise`\<[`Urpd`](../interfaces/Urpd.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11418](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11418)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11439](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11439)
|
||||
|
||||
URPD at date
|
||||
|
||||
@@ -3975,7 +4017,7 @@ Aggregation strategy. Default: raw (no aggregation). Accepts `bucket` as alias.
|
||||
|
||||
> **getVersion**(`options?`): `Promise`\<`string`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11081](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11081)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11102](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11102)
|
||||
|
||||
API version
|
||||
|
||||
@@ -4009,7 +4051,7 @@ Endpoint: `GET /version`
|
||||
|
||||
> **indexToDate**(`index`, `i`): `Date`
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:9049](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L9049)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:9070](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L9070)
|
||||
|
||||
Convert an index value to a Date for date-based indexes.
|
||||
|
||||
@@ -4037,7 +4079,7 @@ The index value
|
||||
|
||||
> **listSeries**(`page?`, `per_page?`, `options?`): `Promise`\<[`PaginatedSeries`](../interfaces/PaginatedSeries.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11168](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11168)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11189](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11189)
|
||||
|
||||
Series list
|
||||
|
||||
@@ -4083,7 +4125,7 @@ Results per page (default: 1000, max: 1000)
|
||||
|
||||
> **listUrpdCohorts**(`options?`): `Promise`\<[`Cohort`](../type-aliases/Cohort.md)[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11360](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11360)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11381](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11381)
|
||||
|
||||
Available URPD cohorts
|
||||
|
||||
@@ -4117,7 +4159,7 @@ Endpoint: `GET /api/urpd`
|
||||
|
||||
> **listUrpdDates**(`cohort`, `options?`): `Promise`\<`number`[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11376](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11376)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11397](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11397)
|
||||
|
||||
Available URPD dates
|
||||
|
||||
@@ -4155,7 +4197,7 @@ Endpoint: `GET /api/urpd/{cohort}/dates`
|
||||
|
||||
> **post**(`path`, `body`, `options?`): `Promise`\<`Response`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:2033](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L2033)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:2054](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L2054)
|
||||
|
||||
Make a POST request with a string body.
|
||||
|
||||
@@ -4192,7 +4234,7 @@ the network with the same body and returns the upstream response.
|
||||
|
||||
> **postBytes**(`path`, `body`, `options?`): `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:2078](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L2078)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:2099](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L2099)
|
||||
|
||||
Make a POST request expecting binary data (application/octet-stream).
|
||||
|
||||
@@ -4226,7 +4268,7 @@ Make a POST request expecting binary data (application/octet-stream).
|
||||
|
||||
> **postJson**\<`T`\>(`path`, `body`, `options?`): `Promise`\<`T`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:2054](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L2054)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:2075](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L2075)
|
||||
|
||||
Make a POST request expecting a JSON response.
|
||||
|
||||
@@ -4266,7 +4308,7 @@ Make a POST request expecting a JSON response.
|
||||
|
||||
> **postText**(`path`, `body`, `options?`): `Promise`\<`string`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:2066](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L2066)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:2087](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L2087)
|
||||
|
||||
Make a POST request expecting a text response.
|
||||
|
||||
@@ -4300,7 +4342,7 @@ Make a POST request expecting a text response.
|
||||
|
||||
> **postTx**(`body`, `options?`): `Promise`\<`string`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12696](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L12696)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:12734](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L12734)
|
||||
|
||||
Broadcast transaction
|
||||
|
||||
@@ -4334,7 +4376,7 @@ Request body
|
||||
|
||||
> **searchSeries**(`q`, `limit?`, `options?`): `Promise`\<`string`[]\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11189](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11189)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11210](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11210)
|
||||
|
||||
Search series
|
||||
|
||||
@@ -4380,7 +4422,7 @@ Maximum number of results
|
||||
|
||||
> **seriesEndpoint**(`series`, `index`): [`SeriesEndpoint`](../interfaces/SeriesEndpoint.md)\<`unknown`\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11054](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11054)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11075](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11075)
|
||||
|
||||
Create a dynamic series endpoint builder for any series/index combination.
|
||||
|
||||
@@ -4411,7 +4453,7 @@ The index name
|
||||
|
||||
> **validateAddress**(`address`, `options?`): `Promise`\<[`AddrValidation`](../interfaces/AddrValidation.md)\>
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11601](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L11601)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:11639](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L11639)
|
||||
|
||||
Validate address
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
# Class: BrkError
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:1491](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L1491)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:1509](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L1509)
|
||||
|
||||
Custom error class for BRK client errors
|
||||
|
||||
@@ -20,7 +20,7 @@ Custom error class for BRK client errors
|
||||
|
||||
> **new BrkError**(`message`, `status?`): `BrkError`
|
||||
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:1496](https://github.com/bitcoinresearchkit/brk/blob/c85da92cbcb3b8645b12f2986df719688adb8dff/modules/brk-client/index.js#L1496)
|
||||
Defined in: [Developer/brk/modules/brk-client/index.js:1514](https://github.com/bitcoinresearchkit/brk/blob/9879a986aa1b6609c39bacbd2ccae5519598e212/modules/brk-client/index.js#L1514)
|
||||
|
||||
#### Parameters
|
||||
|
||||
|
||||
Reference in New Issue
Block a user