import { Init } from "https://deno.land/x/polkadot@0.2.14/api/base/Init.ts";
Constructors
Type Parameters
ApiType extends ApiTypes
Methods
private
_cacheBlockRegistryProgress(key: HexString, creator: () => Promise<VersionedRegistry<ApiType>>): Promise<VersionedRegistry<ApiType>>private
_createBlockRegistry(): Promise<VersionedRegistry<ApiType>>private
_getBlockRegistryViaHash(blockHash: Uint8Array): Promise<VersionedRegistry<ApiType>>private
_getBlockRegistryViaVersion(blockHash: Uint8Array, version?: RuntimeVersionPartial): VersionedRegistry<ApiType> | nullprivate
_getDefaultRegistry(): VersionedRegistry<ApiType>private
_initFromMeta(metadata: Metadata): booleanprivate
_initRegistry(): voidprivate
_metaFromChain(optMetadata?: Record<string, HexString>): Promise<[Hash, Metadata]>private
_metaFromSource(source: ApiBase<any>): Promise<[Hash, Metadata]>private
_subscribeHealth(): voidprivate
_subscribeUpdates(): voidprivate
_unsubscribeHealth(): voidprivate
_unsubscribeUpdates(): voidprotected
_loadMeta(): Promise<boolean>protected
_unsubscribe(): voidat(blockHash: Uint8Array | string, knownVersion?: RuntimeVersion): Promise<ApiDecoration<ApiType>>
getBlockRegistry(blockHash: Uint8Array, knownVersion?: RuntimeVersion): Promise<VersionedRegistry<ApiType>>