{"name":"Svalin","version":"1.0.0","tagline":"Read-only portfolio risk intelligence for AI agents. Pay per call in USDC over x402. Svalin can never move funds.","readOnly":true,"canMoveFunds":false,"payments":{"protocol":"x402","enabled":true,"networks":[{"network":"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1","label":"Solana Devnet","asset":"USDC","payTo":"AzfdbWXPC3BiPJqaeHsGqzZw8NoxYSZkZMob1VNivGBo","environment":"testnet"},{"network":"near:testnet","label":"NEAR Testnet","asset":"USDC","payTo":"svalin-agent.testnet","environment":"testnet"}]},"chains":[{"chain":"solana","family":"solana","status":"live","note":"Live balances and prices via Helius DAS."},{"chain":"near","family":"near","status":"live","note":"Live balances via FastNEAR, prices and pools via Rhea Finance (formerly Ref Finance), validator stakes via NEAR RPC. Tokens outside the curated registry are valued at no more than their pools could pay out."}],"endpoints":[{"method":"GET","path":"/","description":"Service manifest (this document).","price":null,"returns":"ServiceInfo"},{"method":"GET","path":"/health","description":"Liveness probe.","price":null,"returns":"{ ok: true }"},{"method":"GET","path":"/v1/demo/risk/{address}","description":"Free trial of the risk report: 10 free calls a day per IP, shared by every free route, back at 00:00 UTC.","price":null,"returns":"RiskReport"},{"method":"GET","path":"/v1/demo/check/{address}","description":"Free trial of the recipient check, sharing the 10 free calls a day per IP. It skips the payer's history, so it does not catch look-alike addresses.","price":null,"returns":"RecipientCheck"},{"method":"GET","path":"/v1/demo/scan/{address}","description":"Free scan, as on the Svalin website: the free recipient check and the free risk report for one address, for one of the 10 free calls a day per IP. An address with no report, such as a token, still gets its check, with the reason in reportError.","price":null,"returns":"AddressScan"},{"method":"GET","path":"/v1/index/near-tokens","description":"Svalin Index: every NEAR token Rhea Finance prices, graded A-F by the real money in its pools, with market cap, top-10 holder share and holder count where known. Free, refreshed every few hours.","price":null,"returns":"NearTokenIndex"},{"method":"GET","path":"/v1/index/near-tokens/daily","description":"The Index's last 30 days: one point a day per token, its quoted price and the real backing its grade used, oldest first. Free; it changes no grade.","price":null,"returns":"TokenDaily"},{"method":"GET","path":"/v1/demo/exit/{address}","description":"Free trial of exit prices for a NEAR token at $1K, $10K and $100K, sharing the 10 free calls a day per IP. Your own sale size (?amountUsd=) needs the paid route.","price":null,"returns":"TokenExit"},{"method":"GET","path":"/v1/demo/proof/{address}","description":"Free trial of grade proofs for a NEAR token, sharing the 10 free calls a day per IP.","price":null,"returns":"TokenProof"},{"method":"GET","path":"/v1/portfolio/{address}","description":"Use when you need a Solana wallet's or NEAR account's current holdings in USD: balances, prices, allocation and a risk category per token (stablecoin, native, liquid staking, major, meme, long-tail). Read-only.","price":"$0.002","returns":"PortfolioOverview"},{"method":"GET","path":"/v1/risk/{address}","description":"Use before acting on or advising about a Solana wallet's or NEAR account's holdings: a deterministic 0-100 portfolio risk score, A-F grade (none when nothing is priced), exposure metrics (concentration, HHI, stablecoin/meme/long-tail share) and findings with concrete actions. Measures how holdings are spread, not whether the owner is trustworthy. Read-only.","price":"$0.002","returns":"RiskReport"},{"method":"GET","path":"/v1/brief/{address}","description":"Use when you must explain a Solana wallet's or NEAR account's risk to a person: a headline, a short summary and up to 3 actions, plus the full risk report. Numbers always come from the deterministic engine. Read-only.","price":"$0.02","returns":"Brief"},{"method":"GET","path":"/v1/check/{address}","description":"Use before sending money to a Solana address or NEAR account: is it safe to pay? Returns allow, caution or block with reasons: token, program or non-existent addresses, brand-new or barely used wallets, and with ?payer= an address imitating one the payer paid recently (address poisoning) or a large first payment (?amountUsd=). Read-only; it never moves funds.","price":"$0.002","returns":"RecipientCheck"},{"method":"GET","path":"/v1/scan/{address}","description":"Use when you want both answers about a Solana address or NEAR account in one call: the payee check (allow, caution or block; ?payer= and ?amountUsd= work as on /v1/check) and the risk report. An address with no report, such as a token, still gets its check, with the reason in reportError. With a Svalin key it counts as one call. Read-only.","price":"$0.004","returns":"AddressScan"},{"method":"GET","path":"/v1/exit/{address}","description":"Use before accepting a NEAR token as payment or collateral, or buying it: what selling it would actually fetch from the real money in its pools. Returns its Svalin Index grade, what $1K, $10K, $100K and ?amountUsd= would fetch, the largest sale that loses under 1% or 5%, and the most its whole supply could fetch. Read-only.","price":"$0.002","returns":"TokenExit"},{"method":"GET","path":"/v1/proof/{address}","description":"Use before a contract or vault buys a NEAR token: its Svalin Index grade with a Merkle proof against the newest edition sealed on NEAR (Svalin Ratings registry). Any contract checks it with the registry's free verify call; the grade object goes straight into a Svalin Guard vault's request_buy. Read-only.","price":"$0.002","returns":"TokenProof"},{"method":"POST","path":"/v1/keys/pro","description":"Use to stop paying per call: Svalin Pro, 100 calls a day for 30 days on every paid route (risk, portfolio, brief, check, scan, exit, proof). Send the key as Authorization: Bearer instead of an x402 payment; failed calls are not counted. To renew, buy again with the key in the Authorization header: the days add on. Store the key: it is shown once.","price":"$9","returns":"KeyPurchase"},{"method":"POST","path":"/v1/keys/business","description":"Use to stop paying per call: Svalin Business, 200,000 calls for 30 days on every paid route (risk, portfolio, brief, check, scan, exit, proof). Send the key as Authorization: Bearer instead of an x402 payment; failed calls are not counted. To renew, buy again with the key in the Authorization header: the days add on. Store the key: it is shown once.","price":"$79","returns":"KeyPurchase"},{"method":"GET","path":"/v1/keys/me","description":"What is left on the Svalin key or Pro code sent as Authorization: Bearer. Free; it does not use a call.","price":null,"returns":"KeyStatus"},{"method":"GET","path":"/v1/pro","description":"Svalin Pro for people: prices, and where to pay in USDC (a Solana Pay QR code, or an exact amount on NEAR).","price":null,"returns":"ProOffer"},{"method":"POST","path":"/v1/pro/near","description":"Reserves an exact USDC amount on NEAR for a Pro code (body { \"code\", \"plan\" }): paying exactly that amount is how the payment is matched.","price":null,"returns":"NearCheckout"},{"method":"POST","path":"/v1/pro/activate","description":"Finds a Pro code's payments on-chain (body { \"code\" }) and returns its standing. An active code works as a Svalin key.","price":null,"returns":"ProActivation"},{"method":"GET","path":"/openapi.json","description":"OpenAPI 3.1 description.","price":null,"returns":"OpenAPI"},{"method":"GET","path":"/llms.txt","description":"Plain-text guide for LLM agents.","price":null,"returns":"text/plain"}],"links":{"docs":"https://github.com/noobshole/svalin-agent#readme","openapi":"https://svalin-api.noobshole.workers.dev/openapi.json","llms":"https://svalin-api.noobshole.workers.dev/llms.txt","mcp":"https://github.com/noobshole/svalin-agent/tree/main/packages/mcp#readme"}}