sto_to_json

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

Concepts

Behaviour

  • 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.

Definition

function sto_to_json(
    blob: ByteArray | HexString
  ): ErrorCode | Record<string, any> | Transaction

Example

const jsonSto = sto_to_json(stoBlob)

Parameters

Name
Type
Description

blob

ByteArray | HexString

The blob (e.g. serialized transaction) to be converted.

Return Code

Type
Description

ErrorCode | Record<string, any> | Transaction

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

Last updated

Was this helpful?