Page 7

Docs


What you need to run it, read it and check it: commands, addresses, accounts, the routes this site serves, and plain answers to common questions.

Run it

From the repository root:

npm install                      # sdk, dojo, mcp, guardian
anchor build && npm run idl:sync
cargo test -p holdback           # Rust tests + 2,000-case property test
npm run program:fuzz             # 100,000 cases -> eval/program_invariants.json
npm run program:test:localnet    # integration tests on a local validator
npm test                         # all TypeScript packages
make eval                        # dataset, baseline, metrics, bench

This site, from apps/web:

npm install
cp .env.example .env.local
npm run dev            # http://localhost:3000
npm run cf:build       # next build + the Worker bundle

Every environment value is optional. A missing one switches that integration off and the site says it is unavailable; it never substitutes made-up data.

Addresses

Cluster
devnet. Unaudited.
Framework
Anchor, with SPL Token and Token-2022 through one interface, and native SOL.

Accounts and seeds

AccountSeedsPurpose
Config["config"]Admin, relayer, oracle, window limits, pause switch
Hold["hold", sender, nonce_le_u64]One protected payment
VaultATA(mint, owner = Hold)The tokens; SOL sits in the Hold account
Trust["trust", sender, recipient]"Sender trusts recipient"
DepositBox["box", owner]Inbox for wallets that can only make transfers
Flag["flag", reporter, subject]One scam report per reporter per subject
SubjectStats["stats", subject]Flags, holds received, reclaimed-against, released-to

Instructions: initialize_config, update_config, create_hold, create_hold_sol, instant_transfer, instant_transfer_sol, init_deposit_box, open_hold_from_deposit, withdraw_deposit, extend_window, reclaim, reclaim_sol, release, release_early, release_sol, release_early_sol, set_trust, remove_trust, flag_subject, close_hold.

This site's routes

RouteWhat it does
GET /api/healthBuild info and which integrations are configured (booleans only)
GET /actions.jsonSolana Actions rules: /pay and /api/actions/**
GET /api/actions/pay?to=&amount=&mint=Action metadata with the recipient’s current verdict
POST /api/actions/pay?to=&amount=Body {"account": "<payer>"}; returns the unsigned payment transaction
POST /api/dojo/runsStarts a Scam Dojo run; returns the state and a play token
POST /api/dojo/runs/{id}/movesOne move, with the turn it was decided on
GET /api/dojo/runs/{id}/watchThe state plus the truth about every decided round

A receipt lives at /h/<hold address> and a Scam Dojo run can be watched at /dojo/watch/<run id>.

A link of the form /pay?to=<address>&amount=12.5 asks for a payment that goes through a hold. Wallets and sites that understand Solana Actions turn it into a card; everyone else lands on a page with the same description and one button.

to
The recipient address.
amount
Whole units of the asset. When it is missing, the payer is asked for it.
mint
A mint address, SOL (the default) or, on devnet, USDC.
lang
en, hi, es or pt.

A sanctioned recipient is refused. If the risk agent cannot be reached, no transaction is built.

Questions

Does this make a payment safe?

No, and nothing here says so. A hold gives you time and a warning. If the check finds nothing, it says "no warning signs found", which is a statement about what was found, not a promise about the recipient. If you wait out the window and only then discover a fraud, the money is gone.

Who decides how long the window is?

A deterministic policy in code. It turns the evidence into a tier, and the tier into a window: none for someone you trust, 30 minutes by default, 6 hours when suspicious, 24 hours when flagged, 72 hours plus a typed confirmation for a sanctioned address. The language model only writes the explanation.

Can HOLDBACK, or anyone running it, take the money?

No. Funds sit in a vault owned by the hold account. Until the release time only the sender can move them, and only back to the sender. Afterwards anyone can release them, and only to the recipient. The admin key cannot touch any vault, and pausing never blocks undo or release.

Can the recipient get the money before the window ends?

Only if the sender signs an early release. Nothing reaches the recipient early otherwise; that is one of the six invariants the property test checks.

What if the risk agent or this website is down?

No new payment is built without a verdict: the app fails closed. Holds that already exist do not depend on any service. A wallet that can sign can undo, release and close with the SDK alone.

Why would an honest recipient accept waiting?

The default wait is 30 minutes, and none at all once the sender marks them as trusted. A recipient sees the hold, its release time and its tier, the way a merchant sees a pending card payment.

Which tokens work?

Native SOL, SPL Token and Token-2022 mints. Fee-on-transfer and transfer-hook mints are refused. Tokens an issuer can freeze can be stuck while frozen.

Has it been audited?

No. The program is on devnet and unaudited. It has unit tests, localnet scenarios and a property test; the results page lists what has run where and what has not.

What is stored about me?

The evidence document for each assessment, a mirror of public hold data, and caches. The note you write about why you are paying is read once and never stored; only the ids of the cues it matched leave the collector.

More on what each key can do: the trust model.