PaymentContext
The single piece of state every payment-aware blockchain operation carries.
Threaded through the SPI (BlockchainAnchorClient.writePayload(payload, ctx)) and consumed by the Trusted Domain Manager to enforce policy, reserve funds, and settle against the treasury ledger.
Constructors
Properties
stable ID used to reconcile reservations, receipts and ledger entries across the reserve→submit→settle lifecycle
how the fee is routed
True for any PaymentContext returned by PaymentContext.unmanaged; plugins use this to decide whether to consult the treasury or fall back to legacy embedded-credentials behaviour.
caller's optional hard cap; the client must abort if the estimate exceeds this even when policy would allow it
the DID being debited — domain DID for FeeStrategy.DomainPays, subject DID for FeeStrategy.SelfPay, sponsor DID for FeeStrategy.Sponsored
sponsor routing detail (only meaningful when feeStrategy is FeeStrategy.Sponsored)