Deposit
Move SOL or an SPL token into Plaza. The deposit is public and its note gets a label that sets then screen.
Before you start, unlock your notes.
- In the Act box, open Deposit.
- Pick the asset. The list is the pool's mints from
GET /mints. - Enter the amount in that asset, for example
1.5SOL. - Press Deposit and approve the transaction in your wallet. The step bar runs Build, Sign, Send, Confirm.
- When it shows Confirmed, the new note appears in your notes list with its label,
pendingin every set.
With the SDK or CLI
await plaza.deposit({ mint: 'So11111111111111111111111111111111111111112', amount: '1500000000' }, wallet)node cli/plaza.mjs deposit --keypair ./id.json --mint So11111111111111111111111111111111111111112 --amount 1500000000Amounts are base units: 1.5 SOL is 1500000000 lamports.
What happens on chain
The API builds a transaction with Plaza's deposit instruction. Your wallet signs and pays. The program computes the label from your address, the mint, the amount, the slot and the deposit counter, calls SPP to move your tokens into the pool as a note carrying the label, and appends the label to the deposit tree. The Deposited event records every input of the label.
A deposit is public: anyone can see your address, the asset, the amount and the label.
After depositing
Each set screens new labels on its own schedule. The Open Set approves after its screening delay, and the note's status turns approved in the app when the next root covers it. Then the note can be sent privately or withdrawn through that set.
If it fails
The step bar stops on the stage that failed and shows the reason:
| Stage | Usual reason |
|---|---|
| Build | An amount above your balance, or a mint the pool doesn't take |
| Sign | The wallet declined |
| Send | Simulation failed; the message names the program error |
| Confirm | The blockhash expired before it landed; deposit again |