UNPKG

@bsv/wallet-toolbox

Version:

BRC100 conforming wallet, wallet storage and wallet signer components

21 lines 948 B
import { ChainTracker, HttpClient, WhatsOnChainConfig } from '@bsv/sdk'; /** * Represents a chain tracker based on What's On Chain . */ export default class SdkWhatsOnChain implements ChainTracker { readonly network: string; readonly apiKey: string; protected readonly URL: string; protected readonly httpClient: HttpClient; /** * Constructs an instance of the WhatsOnChain ChainTracker. * * @param {'main' | 'test' | 'stn'} network - The BSV network to use when calling the WhatsOnChain API. * @param {WhatsOnChainConfig} config - Configuration options for the WhatsOnChain ChainTracker. */ constructor(network?: 'main' | 'test' | 'stn' | 'teratest', config?: WhatsOnChainConfig); isValidRootForHeight(root: string, height: number): Promise<boolean>; currentHeight(): Promise<number>; protected getHttpHeaders(): Record<string, string>; } //# sourceMappingURL=SdkWhatsOnChain.d.ts.map