Phases
1
Prepare
The client calls
PrepareTransaction with a TransactionOperation enum value and a matching params oneof. The server builds the Canton transaction, returns its hash (prepared_transaction_hash), the serialized prepared_transaction, a transaction_id, and a TrafficEstimate.2
Sign
The client signs
prepared_transaction_hash with the agent’s Ed25519 private key — see Authentication for details on how signatures are carried.3
Execute
The client calls
ExecuteTransaction with transaction_id and the hex-encoded signature. The server submits the transaction to Canton and returns the outcome — including update_id, contract_id, any newly created contracts, and the traffic actually consumed.TransactionOperation
The enum selects which sub-operation the server should build in phase 1:Operations reference
Each enum value corresponds to one dedicated method page that documents itsparams message:
PrepareTransactionRequest
PrepareTransactionResponse
Estimated Canton traffic (
read_cost, write_cost, total_cost) the transaction will consume.Provider signature over the response payload — see Authentication.
ExecuteTransactionRequest
Message-level signature from the cloud agent — see Authentication.
ExecuteTransactionResponse
All contracts created by the transaction — useful for tracking new amulets from change/split.