send-crypto
Version:
A minimal JavaScript library / wallet for sending crypto assets
8 lines (7 loc) • 479 B
TypeScript
import { UTXO } from "../../lib/utxo";
export declare const Blockstream: {
fetchUTXO: (testnet: boolean) => (txHash: string, vOut: number) => Promise<UTXO>;
fetchUTXOs: (testnet: boolean) => (address: string, confirmations: number) => Promise<readonly UTXO[]>;
broadcastTransaction: (testnet: boolean) => (txHex: string) => Promise<string>;
fetchTXs: (testnet: boolean) => (address: string, confirmations?: number, limit?: number) => Promise<readonly UTXO[]>;
};