UNPKG

@ceramicnetwork/core

Version:

Typescript implementation of the Ceramic protocol

18 lines 794 B
import type { AnchorProof, DiagnosticsLogger } from '@ceramicnetwork/common'; import type { AnchorValidator } from '../anchor-service.js'; export declare class EthereumAnchorValidator implements AnchorValidator { readonly ethereumRpcEndpoint: string; private _chainId; private readonly providersCache; private readonly _transactionCache; private readonly _blockCache; private readonly _logger; constructor(ethereumRpcEndpoint: string, logger: DiagnosticsLogger); init(chainId: string | null): Promise<void>; get chainId(): string; private _getTransaction; private _getTransactionAndBlockInfo; validateChainInclusion(anchorProof: AnchorProof): Promise<number>; private _getEthProvider; } //# sourceMappingURL=ethereum-anchor-validator.d.ts.map