PQ-402 has no CLI of its own. The repository has scripts you run from a clone:
git clone --recurse-submodules https://github.com/raldblox/pq-402.git
cd pq-402 && pnpm install && pnpm build
| Command |
What it does |
pnpm build |
builds the four packages |
pnpm test |
the TypeScript tests (vitest) |
pnpm typecheck |
type-checks every package, the examples and these docs’ samples |
pnpm lint, pnpm format:check |
ESLint and Prettier |
pnpm contracts:test |
the Foundry tests of PQ402Escrow (needs Foundry) |
| Command |
What it does |
pnpm example:server |
a paid endpoint against an in-memory chain; pnpm example:server --testnet for the testnet |
pnpm example:client |
pays it: three calls from an agent budget, two from an escrow |
pnpm demo |
the recorded testnet run: deposit, two paid calls, withdrawal; writes site/run.json |
Reads GATEWAY_MNEMONIC, PAYER_MNEMONIC and ESCROW_ADDRESS from a git-ignored .env.
| Command |
What it does |
Sends a transaction |
keys |
writes a new .env with two fresh phrases; never overwrites |
no |
status |
balances, keys, windows, escrow deposit |
no |
precompiles |
checks real ML-DSA-87 signatures against pqcVerify with free calls |
no |
perennial-check <vault> [position] |
checks a vault signs the same bytes as PQ-402, with free calls |
no |
register <gateway or payer> |
registers the ML-DSA-87 key with proof of possession |
yes |
register-kem <gateway or payer> |
registers the ML-KEM-1024 key |
yes |
window <gateway or payer> |
opens a scoped EVM window |
yes |
deposit <fusd> |
the payer approves and deposits into the escrow |
yes |
deploy [--broadcast] |
deploys a PQ402Escrow; dry run without --broadcast |
with --broadcast |
e2e |
runs the paid endpoint and pays it on the testnet |
yes |
| Command |
What it does |
pnpm --filter @pq402/docs-site dev |
the docs site on localhost:4321 |
pnpm --filter @pq402/docs-site build |
builds it, with the API reference and a link check |
pnpm --filter @pq402/docs-site quickstart |
runs the local quickstart sample |