Skip to main content

SerializedBcs

@iota/bcs


@iota/bcs / SerializedBcs

Class: SerializedBcs<T, Input>

Defined in: bcs-type.ts:113

Type Parameters​

T​

T

Input​

Input = T

Indexable​

[key: number]: boolean

Constructors​

Constructor​

new SerializedBcs<T, Input>(type, schema): SerializedBcs<T, Input>

Defined in: bcs-type.ts:123

Parameters​

type​

BcsType<T, Input>

schema​

Uint8Array

Returns​

SerializedBcs<T, Input>

Methods​

parse()​

parse(): T

Defined in: bcs-type.ts:144

Returns​

T


toBase58()​

toBase58(): string

Defined in: bcs-type.ts:140

Returns​

string


toBase64()​

toBase64(): string

Defined in: bcs-type.ts:136

Returns​

string


toBytes()​

toBytes(): Uint8Array<ArrayBufferLike>

Defined in: bcs-type.ts:128

Returns​

Uint8Array<ArrayBufferLike>


toHex()​

toHex(): string

Defined in: bcs-type.ts:132

Returns​

string