Docs
Custody
CUSTODIAL: in keeper mode your vault is an entry in the Moat keeper's book. The SOL and coin tokens of every vault sit on ONE keeper wallet (an ordinary Ed25519 key on the keeper box). Your 24 words still sign every action with a post-quantum one-time signature (WOTS+C) and the keeper checks it before it moves anything: a stolen wallet key, a phished wallet signature or a malicious frontend relay cannot spend your vault. It does NOT protect against the keeper box itself: whoever controls that box (operator, attacker) controls the wallet. Caps bound the amount, and every money move is listed with its transaction in /api/feed.
Custody wallet (holds every vault's SOL and coins). Gas wallet (pays every network fee, holds no vault money). Every money move: the feed.
How it works
- Words to keys, in your browser. The site turns your 24 words into 256 one-time keys and the Merkle root over them, in a Web Worker on this page (about a million SHA-256 hashes, around a second on a laptop). The words and the secret key material never leave the page.
- Only the root goes to the keeper. Creating a vault is free: the keeper writes the root into its book. The vault address follows from the words.
- Deposits are plain transfers. From any wallet to the custody wallet, with the memo
moat:v1:<vault>. The keeper books it to that vault. Coins (pump.fun and PumpSwap) go in the same way from the vault page. - Every action is signed by the words. Buy, sell, withdraw, roll over, move to new words, cancel: each reveals one one-time key and its Merkle path (384 bytes). The keeper checks it with 1,280 hashes before it books or sends anything, and moves the next-key counter forward.
- The keeper trades and pays out. From the custody wallet on pump.fun's bonding curve or the coin's PumpSwap pool; bought coins are booked back into the vault. Withdrawals go exactly to the signed recipient. The keeper pays every network fee.
- Your wallet only deposits. It never signs an order or a withdrawal. If it is stolen, the thief can send you money and nothing else.
What your words sign
A fixed 265-byte message that the keeper rebuilds from the order it receives, then verifies: cluster, the keeper's domain (its custody key, so a signature for this keeper verifies nowhere else), vault, epoch, key number, base, action, venue, coin, amount, minimum out, recipient, deadline, fee cap, new root, new locator and a salt. Change any of them and the signature no longer verifies.
So the site, its proxy or an RPC can delay or drop an order but can never change or redirect it. The confirm screen shows these fields before you sign.
Keys and epochs
- Each epoch has 256 one-time keys under one root. Every action uses the next unused key (0 to 254).
- Key 255 is kept for the roll-over to the next epoch's root, so a vault can never run out of keys. The site asks you to roll over from key 240.
- Never sign two different messages with one key: the site records the key it used before it sends, and a retry re-sends the same bytes. A device without that record starts one to eight keys higher.
- A refused order (too small, not enough funds) burns no key. An accepted trade that then fails returns its amount to the vault; its key stays used.
- Move to new words (rekey) hands the vault to another set of 24 words; the old ones stop working at once.
- Lost your device? Type the words on any device: the site finds the vault from them and rebuilds the keys.
Limits
What is protected, and what is not
Protected
Your vault against a stolen or quantum-broken wallet key, against phishing of wallet signatures, against a malicious site proxy or RPC (they can delay or censor an order, never change or redirect it: coin, amount, minimum out, recipient, fee cap and deadline are inside the signature).
Not protected
- The keeper box. Custodial: whoever controls the box (operator or attacker) controls the custody wallet, an ordinary Ed25519 key, and with it every vault. Caps bound the amount.
- The vault seed words. Lose them and the vault stays shut: no recovery exists. Leak them and it is open.
- The page and its kit. A malicious page can sign a withdraw to itself. Check the confirm screen and use the published site.
- The RPC and the keeper's quotes can be wrong about prices (the signed minimum out still holds) and can censor.
- Your wallet and anything outside the vault.
- pump.fun, PumpSwap, Token-2022 and Solana: governed by their own keys and upgradeable by their owners, and the coins themselves.
- Security level: hash-based, 128-bit classical, 64-bit against Grover (NIST level 1). Two devices signing at the same time without shared records is your risk; "Cancel a pending order" burns a key so an order signed before cannot be accepted.
Trust points
- Operator: holds the custody key, can pause new vaults, deposits and buys (sells and withdrawals are never paused) and change the fee for new vaults (existing vaults never pay more than their own fee).
- Gas: while the keeper's gas wallet is empty, new vaults, deposits and buys are refused; sells and withdrawals are accepted and go out as soon as it can pay.
- Books vs chain: the keeper checks its books against the custody wallet all the time. On a mismatch it halts: nothing leaves custody until the operator checks.
- Cashback coins and coins not on pump.fun or PumpSwap cannot be traded from a vault.
- Token deposits made any other way than the vault page, or of a coin that cannot be traded, are not booked or refunded: the operator sorts them out by hand.
- Coin withdrawals to a wallet without an account for the coin pay that account's rent (about 0.002 SOL) from the vault's SOL; with no SOL the withdrawal waits.
Errors you may see
API
The keeper's API is public through this site: /api/svc/config, /api/svc/health, /api/svc/vault/<address>, /api/svc/quote, /api/svc/coin/<mint>, /api/svc/feed, /api/svc/history/<vault>, /api/svc/intent/<id>, /api/svc/deposit/<signature>. Orders go to POST /api/svc/action as signed bodies. It never sees your words.