Transaction

data class Transaction(val peer: DappPeer, val actAs: DappWallet, val network: DappNetwork, val submission: PrepareSubmission) : DappApprovalRequest

Sign and submit a transaction.

submission is what the dApp asked for — its commands, plus any readAs/disclosedContracts. It is the dApp-authored intent, and it is the only description of the transaction the engine hands this request: the compiled prepared transaction does not exist yet at approval time. The wallet still supplies the envelope — actAs, commandId, synchronizerId — and has validated actAs/readAs against this peer's grant before you are asked.

If the wallet must show the user the exact effects that will be signed (not just the dApp's intent), it should decode and render prepared.preparedTransaction from the prepare step itself. The pipeline recomputes and verifies that transaction's hash before signing, but the engine does not render it for you.

Constructors

Link copied to clipboard
constructor(peer: DappPeer, actAs: DappWallet, network: DappNetwork, submission: PrepareSubmission)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val peer: DappPeer

Who is asking, as attested by the transport — what the approver shows.

Link copied to clipboard