UNPKG

@jingbanz/multichain-crypto-wallet

Version:

A Multichain crypto wallet library that supports Ethereum, Bitcoin, Solana, Waves and other EVM compatible blockchains E.g. Binance Smart Chain, Polygon, Avalanche etc.

21 lines (20 loc) 898 B
import { UTXO } from '../utils/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 {};