UNPKG

send-crypto

Version:

A minimal JavaScript library / wallet for sending crypto assets

14 lines (13 loc) 494 B
import BigNumber from "bignumber.js"; export interface UTXO { readonly txHash: string; readonly vOut: number; readonly amount: BigNumber; readonly confirmations: number; } export interface API { fetchUTXO?: (txHash: string, vOut: number) => Promise<UTXO>; fetchUTXOs?: (address: string, confirmations: number) => Promise<UTXO[]>; fetchTXs?: (address: string, confirmations?: number) => Promise<UTXO[]>; broadcastTransaction?: (hex: string) => Promise<string>; }