otxn_json

Output the originating transaction in JSON format.

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

function otxn_json(): ErrorCode | Record<string, any> | Transaction

Example

const tx_json = otxn_json()

Parameters

No parameters

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.

Last updated

Was this helpful?