Quickstart

Two ways in: use the app with a wallet, or run the program yourself.

In the app

  1. Open the app and press Connect wallet. Pick a browser wallet, or the local test wallet, which is a throwaway key kept in your browser.
  2. Press Get test money. You receive SOL for fees and 500 test USDC.
  3. Press Open a book and sign. Your book and its vault now exist.
  4. Press Deposit, enter an amount and sign. The shared balance shows it, and the Ledger shows entry 0001.
  5. Go to Wallets, press Issue wallet, name it and set its limits. Copy the agent key that is shown once.
  6. Press Seal. The entry's state changes from Open to Seal 1.

You end with a funded book, one agent wallet and a sealed record you can check on the Verify page.

On your machine

You need the Solana CLI, Anchor and Node. From the passbook folder:

anchor build
solana-test-validator --ledger .localnet/ledger --reset \
  --bpf-program BDo5gccbqTxuo9gWXnXA6Fu9HU9GBVj6gNMYMkUNurTH target/deploy/passbook.so
node scripts/seed.mjs

The seed script opens a book, issues four wallets and writes about thirty entries and two seals. Then start the site from the web folder with npm run dev and open /app.

To run the program's own tests instead, use anchor test in the passbook folder.

NextCompute dollars and the vault