QuantumChain QTCN
MenuClose menu
Documentation QTCN / NETWORK

QUANTUMCHAIN

Explore the docs

Architecture · Payments · Protocol

PROTOCOL · DESIGN GUIDE

Transaction structure

Separate the action, its context and its authorization. Learn which fields bind an intent before it can become a ledger operation.

8 min readReviewed 24 November 2026Markdown ↗

An envelope around a typed action

TRANSACTION ANATOMYOne intent, several bound components
CANONICAL TRANSACTIONContext + action + evidence
01
Context

Chain · Type · Version · Replay scope

02
Payload

Inputs · Recipient outputs · Amounts · References

03
Fee & validity terms

Payer · Authorized fees · Validity bounds

04
Witness

Descriptor-bound signatures and required evidence

Two distinct commitments
Signing hashThe defined message a signer approves
Transaction IDThe full canonical transaction under the recommended identity model

Conceptual envelope, not a binary layout. Exact field encodings and signing exclusions remain specification work.

  1. 01
    Context

    Version, chain, transaction type, replay scope and validity bounds identify the operation.

  2. 02
    Payload

    Object references, outputs, amounts and relevant policy references describe the action.

  3. 03
    Authorization

    Witnesses demonstrate that the required descriptor conditions are met.

  4. 04
    Bounded extensions

    Only extensions explicitly permitted by the format rules can carry additional data.

Conceptual components from the transaction specifications; not a byte layout or a submission API.

Read the common field groups

These labels describe the source specification. Field widths, type codes, units, presence rules and the exact binary grammar are not finalized here. Do not serialize this table as JSON and treat it as a network transaction.

Read the common field groups
Source field labelMeaning
tx_version / tx_typeSelect the format and operation semantics
chain_idBind the operation to the intended chain
nonce_or_sequenceProvide replay control within the defined authorization scope
valid_after / valid_untilBound eligibility where the transaction type supports these fields
fee_mode / fee_fieldsIdentify the payer and authorized fee terms
payloadCarry the exact typed operation
witnessCarry the required authorization evidence

Different actions have different rules

A transfer consumes or references value and defines outputs. An asset operation must also establish the applicable issuer or asset authority. A registry update changes persistent state under its own control rules.

Escrow funding, dispute, counter-dispute and settlement are distinct actions in the agreed payment profile. Their integration into the canonical transaction family still needs exact schemas. An invoice reference remains optional; it is business context, not spending authority.

Signing hash and transaction ID

The witness specification recommends deriving the transaction ID from the full canonical transaction, including authorization. Its signing message has a separately defined scope. A wallet must not assume the hash it signs is identical to the final transaction ID.

If witness bytes change, the full-transaction identifier may change. Exact hashing, signature exclusions and canonical ordering must be fixed together before software can depend on them.

Signing hash and transaction ID
IdentifierResponsibility
Signing hashDomain-separated commitment to the canonical message that a signer authorizes
Transaction IDStable identifier used by blocks, receipts and proof targets
Optional intent IDPotential wallet correlation aid; not a substitute for the transaction ID

Prevent reuse in the wrong context

Expiry limits whether a transaction can be accepted. It does not undo a transaction that has already settled. A transfer validity bound and an escrow’s release deadline have different purposes.

  • Bind signatures to the chain, transaction type and relevant format.
  • Bind nonce or sequence to its defined descriptor, account or object scope.
  • Reject already consumed inputs and stale object revisions.
  • Enforce validity bounds using the protocol’s agreed clock or height semantics.
  • Do not assume replacement or cancellation exists merely because a wallet can resubmit.

One meaning, one canonical encoding

Consensus needs fixed field order, unambiguous integers, one representation of optional values, bounded lengths and explicit extension rules. Human-readable JSON may be useful for inspection, but it does not define the consensus bytes.

Unknown consensus fields must be rejected unless an explicit format rule permits them. Exact signing and serialization test vectors remain a prerequisite for a runnable developer reference.

Invalid input and execution outcomes

The witness specification’s initial direction rejects invalid transactions before inclusion. The broader block and ledger sources discuss failure receipts or rollback for supported execution classes. These descriptions are not yet one universal failure model.

A node reference must resolve which failures reject a whole proposal, which outcomes may be recorded, and whether fees are charged in each case. This documentation does not promise a fee-free failure or an included failure receipt for every transaction type.