Module

x/polkadot/types-codec/bundle.ts>Json

Package publishing for deno.land/x/polkadot
Go to Latest
class Json
implements Codec
extends Map<string, any>
import { Json } from "https://dotland.deno.dev/x/polkadot@0.2.38/types-codec/bundle.ts";

Constructors

new
Json(registry: Registry, value?: Record<string, unknown> | null)

Properties

optional
createdAtHash: IU8a
readonly
encodedLength: number
readonly
hash: IU8a
optional
initialU8aLength: number
readonly
isEmpty: boolean
optional
isStorageFallback: boolean
readonly
registry: Registry

Methods

eq(other?: unknown): boolean
getT<T>(key: string): T
inspect(): Inspect
toHex(): HexString
toHuman(): Record<string, AnyJson>
toJSON(): Record<string, AnyJson>
toPrimitive(): Record<string, AnyJson>
toRawType(): string
toString(): string
toU8a(_isBare?: boolean): Uint8Array