bigblocks
Version:
Complete Bitcoin UI component library - authentication, social, wallet, market, inscriptions, and blockchain interactions for React
20 lines • 619 B
TypeScript
import { type BlockchainService } from "../lib/blockchain-service.js";
/**
* Hook to access the blockchain service for making blockchain API calls
*
* @example
* ```tsx
* const blockchainService = useBlockchainService();
*
* // Broadcast a transaction
* const result = await blockchainService.broadcastTransaction(tx);
*
* // Get UTXOs
* const utxos = await blockchainService.getUTXOs(address);
*
* // Get balance
* const balance = await blockchainService.getBalance(address);
* ```
*/
export declare function useBlockchainService(): BlockchainService;
//# sourceMappingURL=useBlockchainService.d.ts.map