OperationDescriptor

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.

kind is a free-form short identifier ("did.create", "credential.anchor", "contract.execute", "revocation.update"). The treasury and policy layer use it for per-operation caps and for the ledger entry.

payloadSizeBytes lets size-sensitive chains (Bitcoin sat/vB, Cardano-tx-size-based fees) compute an estimate without re-serialising.

contractCall carries optional contract-execution detail (target address, abi-encoded calldata) so EVM plugins can call eth_estimateGas and Cardano plugins can size script execution units.

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val payload: JsonElement?
Link copied to clipboard