Skip to content
Open app

First spend with the CLI

Deposit, wait for approval, withdraw and read the receipt from a terminal.

You need Node 22, the Plaza repository with backend built, and a funded Solana CLI keypair. Commands run from backend.

  1. See the sets. Note the Open Set's id.

    sh
    node cli/plaza.mjs sets
  2. Deposit. 0.01 SOL, in lamports:

    sh
    node cli/plaza.mjs deposit --keypair ./id.json --mint So11111111111111111111111111111111111111112 --amount 10000000
  3. Wait for approval. List your notes until the new one shows approved under the set's id in sets. The Open Set approves after its screening delay, 30 seconds on localnet.

    sh
    node cli/plaza.mjs notes --keypair ./id.json
  4. Withdraw the whole note, proven against the set:

    sh
    node cli/plaza.mjs withdraw --keypair ./id.json --note NOTE_ID --set SET_ID --to DESTINATION
  5. Read the receipt at /proof/ followed by the signature the command printed, or with curl on GET /proof/{signature}.

Every command and flag is on CLI.