import { FeeRates, TxHash, TxHistoryParams } from '@xchainjs/xchain-client'; import { Address, Asset, Chain } from '@xchainjs/xchain-util'; import { Balance, Tx, TxsPage, UTXO, UtxoOnlineDataProvider } from '../../types'; import { BlockcypherNetwork } from './blockcypher-api-types'; export declare class BlockcypherProvider implements UtxoOnlineDataProvider { private baseUrl; private _apiKey?; private asset; private assetDecimals; private blockcypherNetwork; constructor(baseUrl: string | undefined, _chain: Chain, asset: Asset, assetDecimals: number, blockcypherNetwork: BlockcypherNetwork, apiKey?: string); get apiKey(): string | undefined; set apiKey(value: string | undefined); broadcastTx(txHex: string): Promise; getConfirmedUnspentTxs(address: string): Promise; getUnspentTxs(address: string): Promise; getBalance(address: Address, confirmedOnly?: boolean): Promise; /** * Get transaction history of a given address with pagination options. * By default it will return the transaction history of the current wallet. * * @param {TxHistoryParams} params The options to get transaction history. (optional) * @returns {TxsPage} The transaction history. */ getTransactions(params?: TxHistoryParams, unspentOnly?: boolean): Promise; /** * Get the transaction details of a given transaction id. * * @param {string} txId The transaction id. * @returns {Tx} The transaction details of the given transaction id. */ getTransactionData(txId: string): Promise; /** * Returns a fee rate estimation from Blockcypher API service. * @returns {FeeRates} Estimated fee rates */ getFeeRates(): Promise; private mapTransactionToTx; private mapUTXOs; /** * helper function tto limit adding to an array * * @param arr array to be added to * @param toAdd elements to add * @param limit do not add more than this limit */ private addArrayUpToLimit; private delay; /** * Get transaction history of a given address with pagination options. * By default it will return the transaction history of the current wallet. * * @param {TxHistoryParams} params The options to get transaction history. (optional) * @returns {TxsPage} The transaction history. */ private getRawTransactions; }