UNPKG

keva-api-js

Version:

Javascript API to access Keva ElectrumX server through Websocket

21 lines 1 kB
import type { Keva } from './types'; export declare function getHashtagScriptHash(hashtag: any): string; declare class KevaWS { private ws; constructor(url: string); connect(): Promise<void>; close(): void; getMerkle(txId: string, height: number): Promise<any>; getIdFromPos(height: number, pos: unknown): Promise<any>; getAddressHistory(address: string): Promise<any>; getAddressBalance(address: string): Promise<any>; getNamespaceInfo(namespaceId: string): Promise<any>; getNamespaceIdFromShortCode(shortCode: any): Promise<string>; getNamespaceHistory(namespaceId: any): Promise<any>; getKeyValues(namespaceId: any, txNum?: number): Promise<any>; getHashtag(hashtag: any, txNum?: number): Promise<any>; getTransactions(txIds: Array<string>, namespaceInfo?: boolean): Promise<Array<Keva.Transaction>>; getValue(namespaceId: string, key: string, history?: boolean): Promise<any>; } export default KevaWS; //# sourceMappingURL=index.d.ts.map