Package-level declarations

Types

Link copied to clipboard
sealed class AssetRef

Reference to an on-chain asset.

Link copied to clipboard
data class ContractCall(val contractAddress: String, val callData: ByteArray, val value: TokenAmount? = null)
Link copied to clipboard
sealed interface FeeStrategy

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

Link copied to clipboard
data class OperationDescriptor(val kind: String, val chainId: String, val payload: JsonElement? = null, val payloadSizeBytes: Long? = null, val contractCall: ContractCall? = null)

Describes a ledger-touching operation for the purposes of fee estimation and policy evaluation. Plugins inspect this to size gas / fee.

Link copied to clipboard
data class PaymentContext(val domainId: String, val payerDid: String, val chainId: String, val feeStrategy: FeeStrategy, val maxFee: TokenAmount? = null, val sponsor: SponsorRef? = null, val correlationId: String = UUID.randomUUID().toString())

The single piece of state every payment-aware blockchain operation carries.

Link copied to clipboard

Config-time deprecation helper for raw private-key options on blockchain anchor providers.

Link copied to clipboard
data class SponsorRef(val sponsorDid: String, val channel: String, val params: Map<String, String> = emptyMap())

Sponsor-specific routing detail attached to a PaymentContext when FeeStrategy.Sponsored is used. Optional — plugins choose a sensible default channel when absent.

Link copied to clipboard
data class TokenAmount(val chainId: String, val asset: AssetRef, val amount: BigInteger)

Amount denominated in the base units of an on-chain asset.

Properties

Link copied to clipboard

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.