sto_to_json
Concepts
Section titled “Concepts”Behaviour
Section titled “Behaviour”-
Format an STO object (binary encoded ledger data) as JSON format.
This function takes a serialized transaction
bloband 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
Section titled “Definition”function sto_to_json( blob: ByteArray | HexString ): ErrorCode | Record<string, any> | TransactionExample
Section titled “Example”const jsonSto = sto_to_json(stoBlob)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| blob | ByteArray | HexString | The blob (e.g. serialized transaction) to be converted. |
Return Code
Section titled “Return Code”| Type | Description |
|---|---|
| ErrorCode | Record<string, any> | Transaction | Decoded JSON representation of the STO object, or an error code if the conversion fails. |