activeDomain
Active TrustedDomainManager for this facade, or null when no domain { ... } block was configured.
The legacy blockchains surface stays unchanged and never routes through the treasury. Callers that want fee caps, sponsor allow-lists, and a settled audit ledger go through this manager (or the anchorThroughDomain convenience).
Example:
val tw = TrustWeave.build {
anchor { chain("algorand:testnet") { provider("algorand") } }
domain {
domainId("acme")
payerDid("did:web:acme.example")
chainAccount("algorand:testnet") {
keyRef = KmsKeyRef("in-memory", "alg-key")
address = "ABC...XYZ"
}
}
}
val ledger = tw.activeDomain?.treasury()?.ledger()Content copied to clipboard