UNPKG

mnee

Version:

A simple package for interacting with the MNEE USD

29 lines (28 loc) 1.23 kB
import { MNEEBalance, MNEEConfig, SdkConfig, ParseTxResponse, SendMNEE, TxHistoryResponse, AddressHistoryParams } from './mnee.types.js'; export declare class MNEEService { private mneeApiKey; private mneeConfig; private mneeApi; constructor(config: SdkConfig); getCosignerConfig(): Promise<MNEEConfig | undefined>; toAtomicAmount(amount: number): number; fromAtomicAmount(amount: number): number; private createInscription; private getUtxos; private fetchRawTx; private getSignatures; transfer(request: SendMNEE[], wif: string): Promise<{ txid?: string; rawtx?: string; error?: string; }>; getBalance(address: string): Promise<MNEEBalance>; getBalances(addresses: string[]): Promise<MNEEBalance[]>; validateMneeTx(rawTx: string, request?: SendMNEE[]): Promise<boolean>; private getMneeSyncs; getRecentTxHistory(address: string, fromScore?: number, limit?: number): Promise<TxHistoryResponse>; getRecentTxHistories(params: AddressHistoryParams[]): Promise<TxHistoryResponse[]>; private parseTransaction; parseTx(txid: string): Promise<ParseTxResponse>; parseTxFromRawTx(rawTxHex: string): Promise<ParseTxResponse>; }