buildSafeDataOut
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
a new OP_RETURN script with data