@altangent/lib-blockbook
Version:
Basic Blockbook API client
14 lines (13 loc) • 560 B
TypeScript
import { AddressOptions } from "./AddressOptions";
import { V2 } from "./ApiTypes";
import { BlockOptions } from "./BlockOptions";
export declare class BlockbookClient {
readonly url: string;
constructor(url: string);
status(): Promise<V2.Status>;
blockhash(height: number): Promise<V2.BlockHash>;
tx(txid: string): Promise<V2.Tx>;
address(address: string, options?: AddressOptions): Promise<V2.AddressResult>;
block(heightOrHash: number | string, options?: BlockOptions): Promise<V2.Block>;
get<T>(path: string): Promise<T>;
}