Skip to content

otxn_json

  • Output the originating transaction in JSON format.
  • Returns the originating transaction as a JSON object or Transaction, or an ErrorCode if the retrieval fails.
function otxn_json(): ErrorCode | Record<string, any> | Transaction
const tx_json = otxn_json()

No parameters

TypeDescription
ErrorCode | Record<string, any> | TransactionReturns the originating transaction as a JSON object or Transaction, or an ErrorCode if the retrieval fails.