import { Balance, BlockInfo, ChainKey, GasData, Provider, ProviderCapabilities, ProviderConfig, TokenBalance, TokenBalanceOptions, TokenTransfer, TokenTransferOptions, Transaction, TxHistoryOptions } from "../_chunks/provider.mjs"; /** Stellar accounts, payments, transactions, ledgers and fee stats from a Horizon server. */ export declare class Horizon extends Provider { static readonly key = "horizon"; private readonly base; constructor(config?: Readonly); get capabilities(): ProviderCapabilities; private account; /** * The whole native balance in stroops, reserve included; an account never funded is a 404. * @param {string} address - Stellar account id, the `G...` form. * @param {ChainKey} chain - Must be Stellar. * @returns {Promise} Amounts in stroops. */ getBalance(address: string, chain?: ChainKey): Promise; /** * The account's trustlines as `CODE:ISSUER` holdings; liquidity pool shares stay out. * @param {string} address - Stellar account id. * @param {ChainKey} chain - Must be Stellar. * @param {Readonly} options - `nonZeroOnly` drops empty trustlines. * @returns {Promise} Holdings with seven decimals each. */ getTokenBalances(address: string, chain?: ChainKey, options?: Readonly): Promise; private paymentsPage; private walkPayments; /** * Horizon's payments view, one row per operation, so rows of one transaction share its hash and * only a single-operation transaction carries its fee. Issued assets ride in `tokenTransfers`. * @param {string} address - Stellar account id. * @param {ChainKey} chain - Must be Stellar. * @param {Readonly} options - `limit` up to 200, `page` up to 10, no bounds. * @returns {Promise} Operation rows. */ getTxHistory(address: string, chain?: ChainKey, options?: Readonly): Promise; /** * Issued-asset payments, filtered here because Horizon has no asset filter: the read walks up to * five pages of 200 payments and keeps what moved an asset, `token` one `CODE:ISSUER` of them. * @param {string} address - Stellar account id. * @param {ChainKey} chain - Must be Stellar. * @param {Readonly} options - `limit` up to 100, `page` up to 10, `token`. * @returns {Promise} Transfers found inside the scanned window. */ getTokenTransfers(address: string, chain?: ChainKey, options?: Readonly): Promise; /** * One transaction with its operations: the first payment-like one names the parties and the * native value, every issued-asset movement lands in `tokenTransfers`. * @param {string} hash - Transaction hash, 64 hex characters. * @param {ChainKey} chain - Must be Stellar. * @returns {Promise} The transaction, with Horizon's record in `raw`. */ getTxDetail(hash: string, chain?: ChainKey): Promise; /** * Per-operation fees over the last five ledgers: the base fee, the fee most operations paid and * the 95th percentile, which Soroban resource fees own. No middle tier is worth quoting. * @param {ChainKey} chain - Must be Stellar. * @returns {Promise} Fee figures in stroops. */ getGasData(chain?: ChainKey): Promise; /** * One ledger as a block: no miner, gas fields at zero, `baseFee` in stroops and `txCount` with * the failed transactions counted in. * @param {number} blockNumber - Ledger sequence. * @param {ChainKey} chain - Must be Stellar. * @returns {Promise} The ledger. */ getBlockInfo(blockNumber: number, chain?: ChainKey): Promise; } //# sourceMappingURL=horizon.d.mts.map