UNPKG

bigblocks

Version:

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

33 lines 1.25 kB
import type { Transaction } from "@bsv/sdk"; import type { BroadcastResult } from "../types/market.js"; export interface BroadcastConfig { apiEndpoint?: string; timeout?: number; retries?: number; } /** * @deprecated Use BlockchainService from useBlockchainService() hook instead */ /** * Broadcast a transaction to the Bitcoin SV network * @deprecated Use BlockchainService.broadcastTransaction() instead */ export declare function broadcastTransaction(tx: Transaction | string, config?: BroadcastConfig): Promise<BroadcastResult>; /** * Broadcast multiple transactions in sequence * @deprecated Use BlockchainService for broadcasting */ export declare function broadcastTransactions(transactions: (Transaction | string)[], config?: BroadcastConfig): Promise<BroadcastResult[]>; /** * Estimate transaction fee based on size and fee rate */ export declare function estimateFee(txSize: number, feeRate?: number): number; /** * Check if a transaction ID is valid format */ export declare function isValidTxid(txid: string): boolean; /** * Create a WhatsOnChain explorer URL for a transaction */ export declare function createExplorerUrl(txid: string, _network?: "main" | "test"): string; //# sourceMappingURL=broadcast.d.ts.map