Skip to main content

fromString

@opcat-labs/scrypt-ts-opcat v1.0.4


@opcat-labs/scrypt-ts-opcat / Transaction / fromString

Function: fromString()

fromString(rawHex): Transaction

Defined in: node_modules/@opcat-labs/opcat/types/transaction/transaction.d.cts:685

Creates a Transaction instance from a raw hexadecimal string.

Parameters​

rawHex​

string

The hexadecimal string representation of the transaction.

Returns​

Transaction

A new Transaction instance populated from the input string.