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

x/polkadot/types/index.ts>Data

Package publishing for deno.land/x/polkadot
Go to Latest
class Data
extends Enum
import { Data } from "https://deno.land/x/polkadot@0.2.14/types/index.ts";

Constructors

new
Data(registry: Registry, value?:
| Record<string, any>
| Uint8Array
| Enum
| string
)

Properties

readonly
asBlakeTwo256: H256
readonly
asKeccak256: H256
readonly
asRaw: Bytes
readonly
asSha256: H256
readonly
asShaThree256: H256
readonly
encodedLength: number
readonly
isBlakeTwo256: boolean
readonly
isKeccak256: boolean
readonly
isNone: boolean
readonly
isRaw: boolean
readonly
isSha256: boolean
readonly
isShaThree256: boolean

Methods

toU8a(): Uint8Array