Arcium LogoArcium TS SDK Docs

ArcisType

Constructors

Constructor

new ArcisType(name, fields): ArcisType

Parameters

ParameterType
namestring
fieldsArcisValueField[]

Returns

ArcisType

Properties

PropertyType
fieldsArcisValueField[]
namestring

Methods

pack()

pack(rawData): bigint[]

Parameters

ParameterType
rawDataunknown[]

Returns

bigint[]


unpack()

unpack(packed): (number | bigint | boolean | Uint8Array<ArrayBufferLike>)[]

Parameters

ParameterType
packedbigint[]

Returns

(number | bigint | boolean | Uint8Array<ArrayBufferLike>)[]


fromJson()

static fromJson(name, json): ArcisType

Parameters

ParameterType
namestring
jsonunknown

Returns

ArcisType