Transaction flow
How Yap prepares a transaction and Solana confirms a DAP action.
Prepare, sign, and send
When a user acts in Yap, the app checks inputs and chain state, then builds a transaction with the relevant DAP instruction. The wallet reviews, signs, and sends it to Solana.
Confirm and project
DAP checks the signer, accounts, and action allowance when the transaction executes. For votes, it also checks the active snapshot proof. Yap marks sent transactions as pending until Solana confirms them. After confirmation, Yap stores accepted DAP events in Postgres for feeds and app views. Solana determines DAP state.
If execution fails or chain state changes while a transaction is pending, refresh the state and build a new transaction. Wait for confirmation before treating a wallet signature or RPC submission as an accepted DAP action.
Direct clients
Clients can submit valid instructions directly to DAP. They derive and validate the required accounts, get the user's signature, and verify the confirmed result on Solana. DAP does not require a Yap profile.