Function inspectTx

Inspects a Cardano transaction CBOR string and converts it into a structured JavaScript object (JSON).

This function takes a hexadecimal CBOR representation of a Cardano transaction and then serializes it into a CIP-116 compliant JSON string. Finally, it parses the JSON string into a native JavaScript object.

If CBOR reading fails, JSON encoding fails, or memory allocation fails.

  • Parameters

    • transactionCbor: string

      The hexadecimal string representation of the Cardano transaction CBOR.

    Returns any

    A JavaScript object representing the decoded Cardano transaction structure (CIP-116 JSON format).