import { TxHash } from '@xchainjs/xchain-client'; import { BaseAmount } from '@xchainjs/xchain-util'; import { AddressUTXO, BalanceParams, Transaction, TxHashParams } from './nownodes-api-types'; /** * Get transaction by hash. * * * @param {string} baseUrl The sochain node url. * @param {string} hash The transaction hash. * @returns {Transactions} */ export declare const getTx: ({ apiKey, baseUrl, hash }: TxHashParams) => Promise; /** * Get transactions * * * @param {string} baseUrl The sochain node url. * @param {string} hash The transaction hash. * @returns {Transactions} */ export declare const getTxs: ({ apiKey, address, baseUrl, limit, }: { apiKey?: string; address: string; baseUrl: string; limit: number; }) => Promise; /** * Get UTXOs * * @param {string} baseUrl The nownodes blockbook URL. * @param {string} address address. * @returns {Transactions} */ export declare const getUTXOs: ({ apiKey, address, baseUrl, isConfirmed, }: { apiKey: string; address: string; baseUrl: string; isConfirmed: boolean; }) => Promise; /** * Get address balance. * * * @param {string} baseUrl The sochain node url. * @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, address, confirmedOnly, assetDecimals, }: BalanceParams) => Promise; /** * Get the consensus branch ID for the next block from the Blockbook backend status. * * Returned by Blockbook at its API root as `backend.consensus.nextblock`, a hex string * (e.g. "5437f330"). Used to sign Zcash v5 transactions against the currently active * network upgrade so they remain valid after consensus upgrades. * * @param {string} baseUrl The nownodes blockbook URL (already includes /api/v2). * @returns {number | undefined} The consensus branch ID, or undefined if unavailable. */ export declare const getConsensusBranchId: ({ apiKey, baseUrl, }: { apiKey: string; baseUrl: string; }) => Promise; export declare const broadcastTx: ({ apiKey, baseUrl, txHex, }: { apiKey: string; baseUrl: string; txHex: string; }) => Promise;