PrepareExecutePipeline

Prepares, verifies, signs and executes one submission.

The contract that matters: an implementation must recompute the transaction hash from the prepared bytes the participant returned and refuse to sign on a mismatch. A wallet signs only what it verified, and this interface is the only place that check can live.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun execute(context: PrepareExecuteContext): TxChangedEvent.Executed

Runs prepare, verify, sign and execute for context and returns the executed event. Throw DappException to fail the request with a specific code; any other exception becomes -32603.