Helios API/ API Reference/ Classes/
ByteArray
Helios ByteArray type
Deprecated
Hierarchy
-
↳
ByteArray
Index
Constructors
constructor
• new ByteArray(props
)
Parameters
Name | Type |
---|---|
props | ByteArrayProps |
Overrides
Accessors
bytes
• get
bytes(): number
[]
Returns
number
[]
hex
• get
hex(): string
Hexadecimal representation.
Returns
string
Methods
eq
▸ eq(other
): boolean
Parameters
Name | Type |
---|---|
other | ByteArray | ByteArrayProps |
Returns
boolean
toCbor
▸ toCbor(): number
[]
Returns
number
[]
Inherited from
toCborHex
▸ toCborHex(): string
Returns
string
Inherited from
toSchemaJson
▸ toSchemaJson(): string
Returns
string
Inherited from
fromCbor
▸ Static
fromCbor(bytes
): ByteArray
Parameters
Name | Type |
---|---|
bytes | number [] |
Returns
fromProps
▸ Static
fromProps(props
): ByteArray
Parameters
Name | Type |
---|---|
props | ByteArray | ByteArrayProps |
Returns
fromUplcCbor
▸ Static
fromUplcCbor(bytes
): ByteArray
Parameters
Name | Type |
---|---|
bytes | string | number [] |
Returns
fromUplcData
▸ Static
fromUplcData(data
): ByteArray
Parameters
Name | Type |
---|---|
data | UplcData |