send-crypto
Version:
A minimal JavaScript library / wallet for sending crypto assets
21 lines (20 loc) • 879 B
TypeScript
import { UTXO } from "../../lib/utxo";
export declare const broadcastTransaction: (network: string) => (txHex: string) => Promise<string>;
declare enum Networks {
BITCOIN = "bitcoin",
BITCOIN_CASH = "bitcoin-cash",
LITECOIN = "litecoin",
BITCOIN_SV = "bitcoin-sv",
DOGECOIN = "dogecoin",
DASH = "dash",
GROESTLCOIN = "groestlcoin",
BITCOIN_TESTNET = "bitcoin/testnet"
}
export declare const Blockchair: {
networks: typeof Networks;
fetchUTXO: (network: string) => (txHash: string, vOut: number) => Promise<UTXO>;
fetchUTXOs: (network: string) => (address: string, confirmations: number) => Promise<readonly UTXO[]>;
broadcastTransaction: (network: string) => (txHex: string) => Promise<string>;
fetchTXs: (network: string) => (address: string, confirmations?: number, limit?: number) => Promise<readonly UTXO[]>;
};
export {};