Skip to main content

buildSafeDataOut

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


@opcat-labs/scrypt-ts-opcat / Script / buildSafeDataOut

Function: buildSafeDataOut()

buildSafeDataOut(data, encoding): Script

Defined in: node_modules/@opcat-labs/opcat/types/script/script.d.cts:416

Parameters

data

the data to embed in the output - it is a string, buffer, or array of strings or buffers

string | any[] | Buffer

encoding

string

the type of encoding of the string(s)

Returns

Script

a new OP_RETURN script with data