| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Cometa.Transaction.Inspection
Description
Inspect transaction fields as JSON domain values. These named operations use the native CIP-116 representation, including its governance and nested transaction fields. Large protocol integers use decimal strings; binary data uses text encodings, and mapping fields may use ordered key/value arrays. JSON object key order is not significant.
Inspection leaves transaction bytes, hashes and signatures unchanged. The
result describes fields; it is not a transaction serialization for signing,
an exact-CBOR interchange format, or a check of ledger validity. Use
encode to render the returned value.
inspected <- Inspection.transaction transaction -- fmap Data.Aeson.encode inspected
Synopsis
- transaction :: Transaction -> IO (Either Error Value)
- subTransaction :: SubTransaction -> IO (Either Error Value)
- body :: EncodedBody -> IO (Either Error Value)
- subBody :: EncodedBody -> IO (Either Error Value)
Documentation
transaction :: Transaction -> IO (Either Error Value) Source #
Inspect the complete body, validity flag, witnesses and optional auxiliary data. Native errors remain explicit; no network queries or signing occur.
subTransaction :: SubTransaction -> IO (Either Error Value) Source #
Inspect a subtransaction's body, witnesses and optional auxiliary data. No fee or outer transaction validity flag is added to the result.