cometa-0.1.0.0: Idiomatic Haskell bindings to cardano-c
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

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.

body :: EncodedBody -> IO (Either Error Value) Source #

Inspect an exact encoded top-level body, including any nested transactions.

subBody :: EncodedBody -> IO (Either Error Value) Source #

Inspect an exact encoded subtransaction body using its local field schema.