Skip to content
Open app

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.

  1. In the Act box, open Deposit.
  2. Pick the asset. The list is the pool's mints from GET /mints.
  3. Enter the amount in that asset, for example 1.5 SOL.
  4. Press Deposit and approve the transaction in your wallet. The step bar runs Build, Sign, Send, Confirm.
  5. When it shows Confirmed, the new note appears in your notes list with its label, pending in every set.

With the SDK or CLI

ts
await plaza.deposit({ mint: 'So11111111111111111111111111111111111111112', amount: '1500000000' }, wallet)

Amounts 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:

StageUsual reason
BuildAn amount above your balance, or a mint the pool doesn't take
SignThe wallet declined
SendSimulation failed; the message names the program error
ConfirmThe blockhash expired before it landed; deposit again