Skip to main content

@midnight-ntwrk/midnight-js-contracts v0.1.15 • API


Midnight.js API Reference v0.1.15 / @midnight-ntwrk/midnight-js-contracts / utils / ParsedHexString

Type alias: ParsedHexString

ParsedHexString: Object

The result of parsing a string as a hex-encoded string.

Type declaration

byteChars

readonly byteChars: string

The captured sequence of whole bytes found in the source string.

hasPrefix

readonly hasPrefix: boolean

A flag indicating if the hex-string has a '0x' prefix.

incompleteChars

readonly incompleteChars: string

The remaining characters of incomplete bytes and/or the non hexadecimal characters found in the source string.