Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/types/primitive/index.ts>StorageKey

Package publishing for deno.land/x/polkadot
Go to Latest
class StorageKey
implements IStorageKey<A>
extends Bytes
import { StorageKey } from "https://deno.land/x/polkadot@0.2.37/types/primitive/index.ts";

Constructors

new
StorageKey(
registry: Registry,
value?:
| string
| Uint8Array
| StorageEntry
| [StorageEntry, unknown[]]
,
override?: Partial<StorageKeyExtra>,
)

Type Parameters

optional
A extends AnyTuple = AnyTuple

Properties

readonly
args: A
readonly
meta: StorageEntryMetadataLatest | undefined
readonly
method: string | undefined
readonly
outputType: string
readonly
section: string | undefined

Methods

is(key: IStorageKey<AnyTuple>): key is IStorageKey<A>
setMeta(
meta?: StorageEntryMetadataLatest,
section?: string,
method?: string,
): this
toHuman(): AnyJson
toRawType(): string