Skip to content

sto_to_json

Serialized Objects
  • Format an STO object (binary encoded ledger data) as JSON format.

    This function takes a serialized transaction blob and converts it into a human-readable JSON format.

  • Returns Decoded JSON representation of the STO object, or an error code if the conversion fails.

function sto_to_json(
blob: ByteArray | HexString
): ErrorCode | Record<string, any> | Transaction
const jsonSto = sto_to_json(stoBlob)
NameTypeDescription
blobByteArray | HexStringThe blob (e.g. serialized transaction) to be converted.
TypeDescription
ErrorCode | Record<string, any> | TransactionDecoded JSON representation of the STO object, or an error code if the conversion fails.