Skip to content

sto_from_json

Serialized Objects
  • Takes a JSON object and converts it into a binary encoded ledger data format.
  • Returns STO Object in binary encoded ledger data format, or an error code if the conversion fails.
function sto_from_json(
jsonobj: Record<string, any> | Transaction
): ErrorCode | ByteArray
const stoBlob = sto_from_json(stoJson)
NameTypeDescription
jsonobjRecord<string, any> | TransactionJSON object to be converted into an STO object.
TypeDescription
ErrorCode | ByteArraySTO Object in binary encoded ledger data format, or an error code if the conversion fails.