import { TxHash } from '@xchainjs/xchain-client'; import { BaseAmount } from '@xchainjs/xchain-util'; import { BalanceParams, BlockcypherNetwork, ChainResponse, GetTxsDTO, Transaction, TxConfirmedStatus, TxHashParams } from './blockcypher-api-types'; /** * Get transaction by hash. * * * @param {string} baseUrl The sochain node url. * @param {string} network network id * @param {string} hash The transaction hash. * @returns {Transactions} */ export declare const getTx: ({ apiKey, baseUrl, network, hash, limit }: TxHashParams) => Promise; /** * Get transactions * * * @param {string} baseUrl The sochain node url. * @param {string} network network id * @param {string} hash The transaction hash. * @returns {Transactions} */ export declare const getTxs: ({ apiKey, address, baseUrl, network, beforeBlock, limit, unspentOnly, }: { apiKey?: string; address: string; baseUrl: string; network: BlockcypherNetwork; limit: number; beforeBlock?: number; unspentOnly: boolean; }) => Promise; /** * Get address balance. * * * @param {string} baseUrl The sochain node url. * @param {string} network Network * @param {string} address Address * @param {boolean} confirmedOnly Flag whether to get balances of confirmed txs only or for all * @returns {number} */ export declare const getBalance: ({ apiKey, baseUrl, network, address, confirmedOnly, assetDecimals, }: BalanceParams) => Promise; /** * Get Tx Confirmation status * * * @param {string} baseUrl The sochain node url. * @param {Network} network * @param {string} hash tx id * @returns {TxConfirmedStatus} */ export declare const getIsTxConfirmed: ({ apiKey, baseUrl, network, hash, }: TxHashParams) => Promise; /** * Helper to get `confirmed` status of a tx. * * It will get it from cache or try to get it from Sochain (if not cached before) */ export declare const getConfirmedTxStatus: ({ apiKey, txHash, baseUrl, network, }: { apiKey?: string; baseUrl: string; txHash: TxHash; network: BlockcypherNetwork; }) => Promise; export declare const broadcastTx: ({ apiKey, baseUrl, network, txHex, }: { apiKey?: string; baseUrl: string; txHex: string; network: BlockcypherNetwork; }) => Promise; /** * Get general information about a blockchain * @param {string} baseUrl The base url for the chain to interact with. * @param {string} apiKey API key provided by Blockcypher. * @returns {ChainResponse} */ export declare const getBlockchainData: ({ baseUrl, apiKey, }: { baseUrl: string; apiKey?: string; }) => Promise;