CapGain onchain safety APIs
https://viftode4-token-risk-402.loca.ltAI-agent-payable Base swap preflight and token/contract risk APIs (x402/USDC on Base; no account required).
Quality grade
How grading works- ✓ Answers a real HTTP 402 challenge
- ✓ Publishes a /.well-known/x402 descriptor
- ✓ Payment address on record
- ✓ Settlement network declared
- ✓ Price declared
Paid endpoints
17 resource(s) advertised by this origin.
https://5-9-107-124.nip.io/contract-lint
Deterministic $0.02-USDC lint of a buyer-supplied JSON endpoint contract; returns pinned hash, errors, warnings, and acceptance gate without fetching URLs.
https://5-9-107-124.nip.io/artifact/invariant-test
Generate a runnable Python, Solidity, or TypeScript property-test harness, run command, shrink policy, and minimized failing-trace schema.
https://5-9-107-124.nip.io/artifact/repository-review
Machine-readable $0.05-USDC repository review pinned to a commit: permalinked evidence, security/accounting findings, invariants, reproducible regression test, and explicit acceptance gate. No buyer code is executed.
https://5-9-107-124.nip.io/artifact/protocol-research
Timestamped protocol/market research artifact with canonical metadata, chain TVL evidence, declared audits/repos, decision questions, and a reproducible next experiment.
https://5-9-107-124.nip.io/workflow-readiness
Machine-readable $0.01-USDC ship/hold preflight for side-effecting agent workflows. Scores six durable-execution gates and returns an exact remediation plus failure-injection test plan.
https://5-9-107-124.nip.io/incident-preflight
Machine-readable $0.02-USDC urgent incident preflight: decision, bounded evidence, next action, rollback plan, and acceptance gate.
https://5-9-107-124.nip.io/migration-preflight
Machine-readable $0.02-USDC migration ship/hold gate from bounded metadata, with replay acceptance test and rollback plan. No datastore is accessed or changed.
https://5-9-107-124.nip.io/agent-loop-preflight
Machine-readable $0.02-USDC versioned agent-loop plan with decision-safe steps, evolution rule, stop conditions, hard rails, acceptance gate, and rollback.
https://5-9-107-124.nip.io/swap-check
One-call Base token swap verdict: go, caution, or no-go from live DEX liquidity, top-holder concentration, LP-lock signals, and the existing on-chain contract-risk scan.
https://5-9-107-124.nip.io/swap-preflight
Deterministic Base swap execution preflight. Returns strict yes/no JSON from latest-block freshness, gas versus the caller's cap, and on-chain runtime-bytecode checks for token-in, token-out and router. It never signs, quotes or executes a swap; callers must still enforce a fresh quote and minOut.
https://5-9-107-124.nip.io/defi-pool
DeFi pool pre-deposit intelligence — live APY + TVL for any DefiLlama pool, ENRICHED with an on-chain security read of the pool's underlying token contracts (verified? upgradeable proxy? owner/mint/pause/admin controls? rug/honeypot?). The one-call check a yield-farming agent runs before depositing.
https://5-9-107-124.nip.io/defi-pool/top
Risk-adjusted DeFi yield screener — the best Base/Ethereum pools ranked by yield DISCOUNTED for volatility, pure-incentive yield, thin TVL, outliers & IL risk. The 'where should my capital go right now' query for a yield-farming agent. Filters: chain, stablecoin-only, min TVL. Then deep-check any pi
https://5-9-107-124.nip.io/defi-pool/deep
Deep DeFi pool intelligence — pre-deposit tier PLUS 30-day yield stability (mean/volatility/drawdown from history) and deep contract-control analysis of the underlying tokens (owner/admin/renounced/upgradeable). For agents that rebalance.
https://5-9-107-124.nip.io/token-risk
On-chain token & contract risk scanner — is this token a rug pull, scam, or honeypot? Checks proxy/upgradeability, owner/mint/pause/blacklist/setFee selectors, Sourcify-verified source, honeypot heuristics. Returns risk_score 0-10, risk_band, flags. Due diligence before you buy/swap/approve. Bytecod
https://5-9-107-124.nip.io/token-risk/deep
Deep control-analysis tier: base risk scan PLUS who controls the contract — owner()/admin readout, ownership renounced?, EOA-vs-multisig owner, proxy implementation pointer. Reads-only, safe.
https://5-9-107-124.nip.io/token-risk/plus
Composite token safety verdict — is this token a honeypot / can I sell it? Merges REAL market-security data (honeypot, buy/sell tax, blacklist, holders, LP) with our bytecode & control heuristics into one composite_risk_band + recommendation. Highest-confidence trade-safety answer. Base + Ethereum.
https://5-9-107-124.nip.io/token-risk/batch
Portfolio/batch risk scan: pass up to 10 comma-separated addresses, get a risk scan for each in one call. Bytecode-only, safe.
How to call
curl -sS -i -X GET https://viftode4-token-risk-402.loca.lt # expect HTTP 402 Payment Required (about 0.02 USDC/call)
Listed in
Directories this entry was found in.