Helios API/ API Reference/ Classes/

ByteArray

Helios ByteArray type

Deprecated

Hierarchy

Index

Constructors

constructor

new ByteArray(props)

Parameters

NameType
propsByteArrayProps

Overrides

HeliosData.constructor

Accessors

bytes

get bytes(): number[]

Returns

number[]

hex

get hex(): string

Hexadecimal representation.

Returns

string

Methods

eq

eq(other): boolean

Parameters

NameType
otherByteArray | ByteArrayProps

Returns

boolean

toCbor

toCbor(): number[]

Returns

number[]

Inherited from

HeliosData.toCbor

toCborHex

toCborHex(): string

Returns

string

Inherited from

HeliosData.toCborHex

toSchemaJson

toSchemaJson(): string

Returns

string

Inherited from

HeliosData.toSchemaJson

fromCbor

Static fromCbor(bytes): ByteArray

Parameters

NameType
bytesnumber[]

Returns

ByteArray

fromProps

Static fromProps(props): ByteArray

Parameters

NameType
propsByteArray | ByteArrayProps

Returns

ByteArray

fromUplcCbor

Static fromUplcCbor(bytes): ByteArray

Parameters

NameType
bytesstring | number[]

Returns

ByteArray

fromUplcData

Static fromUplcData(data): ByteArray

Parameters

NameType
dataUplcData

Returns

ByteArray