sto_from_json
Concepts
Section titled “Concepts”Behaviour
Section titled “Behaviour”- 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.
Definition
Section titled “Definition”function sto_from_json( jsonobj: Record<string, any> | Transaction ): ErrorCode | ByteArray
Example
Section titled “Example”const stoBlob = sto_from_json(stoJson)
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
jsonobj | Record<string, any> | Transaction | JSON object to be converted into an STO object. |
Return Code
Section titled “Return Code”Type | Description |
---|---|
ErrorCode | ByteArray | STO Object in binary encoded ledger data format, or an error code if the conversion fails. |