Docs / Reference / Local API

Local API

The engine exposes a JSON API on http://127.0.0.1:8787. Bound to localhost only — do not expose the port.

State & identity

RouteMethodBodyReturns
/api/stateGETvault/unlocked flags, wallets, plan status, token, jobs, log tail
/api/balancesGETlive ETH balance per wallet on Robinhood
/api/source-balancePOST{chain}wallet-0 ETH balance on a funding chain
/api/holdersGETexternal holder table for the tracked token

Pipeline

RouteMethodBodyNotes
/api/seedPOST{count, password}generates vault; returns mnemonic once
/api/unlockPOST{password}opens vault into memory
/api/planPOST{hours, from_balance, src_chain, source_index}builds out/funding-plan.json
/api/executePOST{execute}runs the plan; false = dry run
/api/launchPOST{name, symbol, logo?, description?, quote_in_eth, deployer_index, execute}gated: rejects before steps 1–5 complete

Trading

RouteMethodBody
/api/tokenPOST{address} — resolve + track a token
/api/buyPOST{eth, wallet_index?}
/api/sellPOST{pct?, wallet_index?}
/api/autoPOST{lo_s, hi_s} — start progressive buys
/api/stopPOST— halt the auto loop
/api/dumpPOST— parallel exit, all wallets
/api/approvePOST— stage sell approvals
/api/lockPOST— same staging via the lock control

Rules every route enforces

  • Signing requires an unlocked vault and execute: true — otherwise simulate or refuse.
  • /api/launch runs the pipeline gate, canLaunch, and an eth_call simulation before broadcasting.
  • Errors come back as {"error": "…"} with a 4xx/5xx status — the UI toasts them verbatim.