UNPKG

bigblocks

Version:

Complete Bitcoin UI component library - authentication, social, wallet, market, inscriptions, and blockchain interactions for React

22 lines 964 B
import type { Transaction } from "@bsv/sdk"; import type { BroadcastResult } from "../components/social/types/social.js"; import type { UTXO } from "../types/backend.js"; import type { BlockchainServiceConfig } from "./types.js"; export declare class BlockchainService { private config; constructor(config: BlockchainServiceConfig); private getHeaders; private getEndpoint; broadcastTransaction(tx: Transaction | string): Promise<BroadcastResult>; getUTXOs(address: string): Promise<UTXO[]>; getBalance(address: string): Promise<{ confirmed: number; unconfirmed: number; }>; getTransactions(address: string, limit?: number): Promise<Record<string, unknown>[]>; private normalizeUTXOs; private normalizeBalance; } export declare function createBlockchainService(config?: BlockchainServiceConfig): BlockchainService; export type { BlockchainServiceConfig }; //# sourceMappingURL=blockchain-service.d.ts.map