otxn_json
Behaviour
Section titled “Behaviour”- Output the originating transaction in JSON format.
- Returns the originating transaction as a JSON object or Transaction, or an ErrorCode if the retrieval fails.
Definition
Section titled “Definition”function otxn_json(): ErrorCode | Record<string, any> | Transaction
Example
Section titled “Example”const tx_json = otxn_json()
Parameters
Section titled “Parameters”No parameters
Return Code
Section titled “Return Code”Type | Description |
---|---|
ErrorCode | Record<string, any> | Transaction | Returns the originating transaction as a JSON object or Transaction, or an ErrorCode if the retrieval fails. |