@bsv/overlay
Version:
BSV Blockchain Overlay Services Engine
14 lines • 847 B
TypeScript
import type { AdmittedListResponse, CompoundMerklePathResponse, RawTransactionResponse, TopicAnchorRangeResponse, TopicAnchorTip } from './BASM.js';
export declare class BASMRemote {
private readonly endpoint;
private readonly topic;
private readonly fetchImpl;
constructor(endpoint: string, topic: string, fetchImpl?: typeof fetch);
requestTopicAnchorTip(): Promise<TopicAnchorTip>;
requestTopicAnchorRange(fromHeight: number, toHeight: number): Promise<TopicAnchorRangeResponse>;
requestAdmittedList(blockHeight: number, blockHash?: string): Promise<AdmittedListResponse>;
requestCompoundMerklePath(blockHeight: number, txids: string[]): Promise<CompoundMerklePathResponse>;
requestRawTransactions(txids: string[]): Promise<RawTransactionResponse>;
private post;
}
//# sourceMappingURL=BASMRemote.d.ts.map