UNPKG

multichain-controller

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.

16 lines (15 loc) 919 B
import { UTXO } from '../utils/utxo'; export declare enum BlockchainNetwork { Bitcoin = "btc", BitcoinCash = "bch", BitcoinTestnet = "btc-testnet", BitcoinCashTestnet = "bch-testnet" } export declare const broadcastTransaction: (network: BlockchainNetwork) => (txHex: string) => Promise<string>; export declare const Blockchain: { networks: typeof BlockchainNetwork; fetchUTXO: (network: BlockchainNetwork) => (txHash: string, vOut: number) => Promise<UTXO>; fetchUTXOs: (network: BlockchainNetwork) => (address: string, confirmations: number, limit?: number, offset?: number) => Promise<readonly UTXO[]>; broadcastTransaction: (network: BlockchainNetwork) => (txHex: string) => Promise<string>; fetchTXs: (network: BlockchainNetwork) => (address: string, confirmations?: number, limit?: number, offset?: number, onlyUnspent?: boolean) => Promise<readonly UTXO[]>; };