FeeStrategy

sealed interface FeeStrategy

Strategy describing who pays the on-chain fee for a single operation.

  • DomainPays — debit the Trusted Domain treasury. The default.

  • SelfPay — the operation's subject pays from their own account; the subject must hold the signing key (or have delegated it via KMS).

  • Sponsored — a third-party relayer pays. Maps onto ERC-4337 paymasters (EVM), the Algorand fee-payer atomic group, and pre-signed PSBT sponsorship (Bitcoin, future).

  • Escrowed — the fee is drawn from a pre-funded escrow contract identified by Escrowed.escrowRef.

Inheritors

Types

Link copied to clipboard
Link copied to clipboard
data class Escrowed(val escrowRef: String) : FeeStrategy
Link copied to clipboard
Link copied to clipboard
data class Sponsored(val sponsorDid: String) : FeeStrategy