UNPKG

@chakrachain/btc-settlement-sdk

Version:
9 lines (8 loc) 590 B
import { Network, SUPPORT_CHAIN_TYPE, SUPPORT_PROJECT_TYPE, UTXO } from '../types'; import { networks } from 'bitcoinjs-lib'; export declare const formatNetwork: (network: Network) => networks.Network; export declare const isTaproot: (address: string) => boolean; export declare const toXOnly: (pubKey: Buffer) => Buffer; export declare function getFundingUTXOs(address: string, amount: number, network: string): Promise<UTXO[]>; export declare const getSupportedProjects: () => Promise<SUPPORT_PROJECT_TYPE[]>; export declare const getSupportedChains: () => Promise<SUPPORT_CHAIN_TYPE[]>;