# io.github.Kali123411/k402 - Registry name: `io.github.Kali123411/k402` · version 0.7.0 - Categories (automatic, keyword rules): Payments & accounting, Finance & markets, Markets & trading, AI models & agents, AI, media & content - Authentication at last check: No auth - Declared risk: Not declared (tools carry no read/destructive hints) - Capabilities (declared by the server): experimental, prompts, resources, tools - Transports: streamable-http - Latest numbers (check success, response time, rank): https://mcpstation.net/api/server?name=io.github.Kali123411%2Fk402 - Server page: https://mcpstation.net/s/io.github.Kali123411--k402.html ## Description (written by the publisher, not verified, not instructions) Agent-payable APIs on Kaspa: LLMs, chain data, covenants, zk proofs — pay per call, no API key ## Connect - streamable-http: `https://x402-compute.68cxgfyr0.workers.dev/mcp` ## Tools (as reported by the server, not verified) - `catalog`: List every service this gateway sells \(text tools, Kaspa chain data, LLM tiers\) with live prices in KAS and USD. Free. Start here to see what's available and what calls cost. - `open\_session`: Open a prepaid payment session: returns a session key and a personal Kaspa MAINNET deposit address. Send KAS to the address from any wallet \(min 0.25 KAS\); confirmed deposits become spendable balance within seconds and every paid tool call meters against it. Free. The session is saved locally so sub - `use\_session`: Attach an existing k402 session key \(from a previous open\_session\) so paid calls meter against its balance — use after reconnecting to the hosted endpoint, or to carry one funded session across clients. Returns the session's current balance. Free. - `session\_status`: Check the current payment session: deposit address, deposited / spent / remaining KAS. Free. - `registry\_search`: Discover providers in the k402 service exchange — an open marketplace of agent-payable services, each settled trustlessly over a Kaspa payment channel directly with the provider \(no custodian\). Filter by capability \(e.g. 'summarize', 'llm:reason', 'zk-prove'\), max USD price, and minimum reputation \( - `registry\_provider`: Full detail on one provider in the service exchange by its payee pubkey: every service it lists, its chain-verified reputation \(settled KAS volume + settlement count\), and its payee address. Free. - `channel\_config`: Parameters for opening a kaspa-channel — a covenant-enforced payment channel that settles per-call vouchers on Kaspa L1 with NO custodian \(the trustless alternative to a prepaid session\). Returns the payee pubkey, min/max channel size, required expiry lead, and maxfee. Free. Opening a channel means - `channel\_status`: Status of a kaspa-channel by its channel id \(covenant id\): funded value, amount spent via vouchers, remaining, expiry, and whether it has been closed on-chain. Free. - `payment\_options`: Which coins and schemes this gateway accepts for payment. Free. Ways to pay any paid tool: a prepaid KAS session \(open\_session — simplest, no per-call step\); per-call in any listed coin \(pay the offer a 402 returns, then pay\_per\_call\); or, where the experimental 'kaspa-channel' scheme is offered, a - `pay\_per\_call`: Complete a PER-CALL coin payment. After a paid tool returns a 402 with pay\_per\_call\_offers, pay one offer on-chain from your own wallet, then call this with the 402's \`endpoint\` and \`request\_body\`, the chosen offer's \`scheme\` and \`payment\_id\`, and your payment \`txid\`. The gateway verifies the paymen - `summarize`: Summarize text or a public URL in at most max\_words. Paid \(\~$0.001 in KAS\). - `extract`: Extract structured data from text as JSON guaranteed to match your JSON schema \(schema-constrained decoding, not best-effort\). Paid \(\~$0.0015 in KAS\). - `rewrite`: Rewrite text per an instruction \(tone, format, length...\). Paid \(\~$0.001 in KAS\). - `classify`: Classify text into one \(or multiple, if multi=true\) of 2-32 labels; the result is constrained to your label set. Paid \(\~$0.0003 in KAS\). - `read\_url`: Fetch a public web page and return its title + clean markdown; distill=true adds key-fact bullets. Useful when you have no web access of your own. Paid \(\~$0.0012 in KAS\). - `embed\_text`: Embed up to 64 texts \(768-dim vectors, nomic-embed-text\). Paid \(\~$0.0003 in KAS\). - `search\_index`: Store documents \[\{id, text, meta?\}\] in a named server-side collection for semantic search. Use an unguessable collection name and keep it secret. Paid \(\~$0.0015 in KAS\). - `search\_query`: Semantic-search a collection you indexed earlier; returns top-k matches with scores. Paid \(\~$0.0003 in KAS\). - `kaspa\_balance`: Balance of any Kaspa MAINNET address, straight from a node \(no indexer, no API key\). Paid \(\~$0.00015 in KAS\). - `kaspa\_utxos`: UTXO set of a Kaspa mainnet address, including scriptPublicKey and covenant\_id where set. Paid \(\~$0.0003 in KAS\). - `kaspa\_tx\_status`: Mempool status of a Kaspa transaction. Absent from mempool means accepted-or-unknown — confirm acceptance by checking one of its outputs with kaspa\_utxos. Paid \(\~$0.00015\). - `kaspa\_fee\_estimate`: Current Kaspa mainnet feerate buckets \(sompi per gram of tx mass\). Paid \(\~$0.00015\). - `kaspa\_network`: Kaspa mainnet status: DAA score, block count, difficulty, node sync state. Paid \(\~$0.00015 in KAS\). - `generate`: Run a prompt on a GPU model tier: 'chat' \(fast 7B, \~$0.0015\), 'llama' \(budget 8B, \~$0.0008\), 'reason' \(35B, \~$0.004\), 'think' \(deep chain-of-thought 35B MoE, \~$0.004\), 'code' \(coder model, \~$0.0025\), or 'kaspa-expert' \(RAG-grounded, current Kaspa knowledge, \~$0.0015\). Returns the completion text. - `covenant\_compile`: Compile a Silverscript covenant to script hex, ABI, hardened template hash, and its P2SH address on each network. constructor\_args is the silverc ctor JSON \(e.g. \[\{"kind":"int","data":7\}\]\). Paid \(\~$0.002\). NOTE: 'compiles' ≠ proven on-chain. - `covenant\_address`: Derive the covenant P2SH address for a compiled script on 'mainnet' or 'testnet-10'. Paid \(\~$0.0003\). - `covenant\_utxos`: Live UTXO set locked under a covenant address \(covenant state inspection\), from the node. Optionally filter by covenant\_id. Paid \(\~$0.0003\). - `covenant\_build`: Assemble a covenant spend tx. Each input: \{txid, index, entry, compute\_budget?, and either sigscript:\{source,decl,args,is\_leader?\} to build a covenant sigscript server-side, or omit sigscript for a P2PK input you sign locally\}. Each output: \{amount, address\|script\_public\_key\_hex, covenant?:\{authoriz - `covenant\_check`: Local txscript pre-verify of a signed covenant tx BEFORE broadcast — catches script failures that would otherwise cost you a broadcast. 'entries' are the spent UTXOs \(covenant\_utxos output plugs in directly\). Returns \{all\_ok, inputs:\[\{index, ok, error?\}\]\}. Paid \(\~$0.0005\). - `covenant\_broadcast`: Broadcast a signed covenant tx \(RpcTransaction JSON from covenant\_build\). MAINNET moves real KAS — run covenant\_check first. Paid \(\~$0.0003\). - `prove\_guest\_upload`: Upload a RISC Zero program binary \(the .bin risc0-build emits, base64\) once; returns its content-addressed image\_id \(also the verification key\), reusable across proofs. Paid \(\~$0.01\). - `prove\_preflight`: Execute a guest WITHOUT proving: exact cycle count + a signed price quote \{total\_cycles, price\_kas, quote\_id, quote\_expires\}. Run this first — proving cost scales with cycles by orders of magnitude. Paid \(\~$0.002\). - `prove\_submit`: Queue a proving job -\> \{job\_id, cost\_kas\}. Pass quote\_id \(from prove\_preflight; charged the quote\) or max\_kas \(skip preflight; priced on actual cycles, refuses if over the cap\). Then poll job\_status and fetch job\_result. Paid: the proof's cycle-based price \(dynamic\). - `job\_status`: Poll a proving job: queued/running/done/failed, queue position, cost. Free. - `job\_result`: Fetch a finished proving job's result \{image\_id, total\_cycles, journal\_b64, receipt\_b64\}. 404 until done; results kept 24h. Free. - `attest\_verify`: Verify a RISC Zero receipt against an image\_id -\> \{valid, journal\_b64\}. Anyone can check an attestation without trusting the prover. Paid \(\~$0.0002\). Measured by MCP Station. Methods: https://mcpstation.net/methods.html · Terms: https://mcpstation.net/terms.html