Skip to main content
Module

x/polkadot/mod.ts>types.Data

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

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