Quickstart
Two ways in: use the app with a wallet, or run the program yourself.
In the app
- 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.
- Press Get test money. You receive SOL for fees and 500 test USDC.
- Press Open a book and sign. Your book and its vault now exist.
- Press Deposit, enter an amount and sign. The shared balance shows it, and the Ledger shows entry 0001.
- Go to Wallets, press Issue wallet, name it and set its limits. Copy the agent key that is shown once.
- 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.mjsThe 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