Skip to main content

fromObject

scrypt-ts-opcat v1.0.1


scrypt-ts-opcat / Message / fromObject

Function: fromObject()

fromObject(obj): Message

Defined in: node_modules/@opcat-labs/opcat/types/message/message.d.cts:103

Creates a Message instance from an object containing a hex-encoded message.

Parameters

obj

The source object containing the message data.

messageHex

string

Hex-encoded message string.

Returns

Message

A new Message instance created from the decoded buffer.