@gobob/bob-sdk
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -71,2 +71,4 @@ export declare const MAINNET_ESPLORA_BASE_PATH = "https://btc-mainnet.gobob.xyz"; | ||
} | ||
export type ConfirmationTarget = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 144 | 504 | 1008; | ||
export type EsploraFeeEstimates = Record<ConfirmationTarget, number>; | ||
export declare class EsploraClient { | ||
@@ -85,2 +87,3 @@ private basePath; | ||
getFeeEstimate(confirmationTarget: number): Promise<number>; | ||
getFeeEstimates(): Promise<EsploraFeeEstimates>; | ||
getAddressUtxos(address: string, confirmed?: boolean): Promise<Array<UTXO>>; | ||
@@ -87,0 +90,0 @@ broadcastTx(txHex: string): Promise<string>; |
@@ -63,2 +63,5 @@ "use strict"; | ||
} | ||
async getFeeEstimates() { | ||
return this.getJson(`${this.basePath}/fee-estimates`); | ||
} | ||
async getAddressUtxos(address, confirmed) { | ||
@@ -65,0 +68,0 @@ const response = await this.getJson(`${this.basePath}/address/${address}/utxo`); |
{ | ||
"name": "@gobob/bob-sdk", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
155976
2450