Add LITCOIN plugin · full protocol on Base + x402 Data Card#42
Open
tekkaadan wants to merge 1 commit into
Open
Add LITCOIN plugin · full protocol on Base + x402 Data Card#42tekkaadan wants to merge 1 commit into
tekkaadan wants to merge 1 commit into
Conversation
Collaborator
🟡 Heimdall Review Status
|
LITCOIN is a decentralized AI-data protocol on Base mainnet (chainId
8453). Miners run AI workloads, earn LITCOIN rewards, stake into 4
tiers (Spark/Circuit/Conduit/Architect), open vaults to mint LITCREDIT
(a compute credit pegged to ~1,000 model output tokens), and deposit
LITCREDIT into a compute escrow to pay for inference through a
relay marketplace. Buyers (frontier labs, eval shops) purchase
research-grade dataset subscriptions over the x402 HTTP payment
protocol.
The plugin exposes 24 endpoints under api.litcoin.app:
/v1/mcp/state/:wallet read balances, staking, vaults,
escrow, claimable, oracle
/v1/mcp/addresses chain config + contract addresses
/v1/mcp/buy-info venue discovery (DexScreener)
/v1/mcp/oracle/price LITCOIN/USD spot
/v1/mcp/vault/:vaultId per-vault enrichment
/v1/mcp/prepare/<action> unsigned calldata for 19 actions:
approve-litcoin / approve-token
stake / unstake / early-unstake
upgrade-tier / add-to-stake
claim
open-vault / open-vault-v2
mint-litcredit / repay-debt
add-collateral / withdraw-collateral
close-vault
deposit-escrow / withdraw-escrow
buy-litcoin / transfer
/v1/data/x402/info x402 onboard discovery
/v1/data/x402/onboard/:tier gated by x402-express middleware
against USDC on Base, 4 tiers
Spec follows the canonical Avantis plugin shape (Avantis-style
front-matter, Surface routing table, Response envelope, send_calls
mapping, Disclaimers, Links).
Same spec is also self-hosted at:
https://litcoin.app/.well-known/base-mcp/litcoin.md
https://litcoin.app/.well-known/base-mcp/index.json
Verified live on 2026-05-26:
- 5/5 read routes 200 OK (or 503 with documented fallback)
- 19/19 prepare routes return 2xx envelope or structured 4xx
VALIDATION_ERROR
- 4/4 x402 onboard routes return HTTP 402 with valid
paymentRequirements when X-PAYMENT header missing
Contact: contact@litcoin.app
Site: https://litcoin.app
Token: 0x316ffb9c875f900AdCF04889E415cC86b564EBa3 (Base)
3519c02 to
072eea3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the LITCOIN skill plugin to
skills/base-mcp/plugins/litcoin.mdand registers it in the native-plugin table inSKILL.md.LITCOIN is a decentralized AI-data protocol on Base mainnet (chainId 8453). Miners run AI workloads, earn LITCOIN rewards, stake into 4 tiers, mint LITCREDIT (a compute credit) against vault collateral, and trade research-grade datasets via a Data Card subscription.
What this plugin exposes
24 endpoints under
https://api.litcoin.app/v1/mcpand/v1/data/x402:approve-litcoin/approve-token/stake/unstake/early-unstake/upgrade-tier/add-to-stake/claim/open-vault/open-vault-v2/mint-litcredit/repay-debt/add-collateral/withdraw-collateral/close-vault/deposit-escrow/withdraw-escrow/buy-litcoin/transferx402-expressagainst USDC on Base, settled via the public x402.org facilitatorEvery prepare route returns the standard envelope:
{ "ok": true, "data": { "to": "0x...", "from": "0x...", "data": "0x...", "value": "0x0", "chainId": 8453, "description": "...", "meta": { "validation": { ... } } } }Ready for Base MCP
send_calls.Format
Spec follows the canonical Avantis plugin shape: front-matter, Surface routing table, Base-only rules, Response envelope, Read endpoints, Prepare endpoints, x402 buy flow,
send_callsmapping, Disclaimers, Links.Hosts to consider for the
web_requestallowlisthttps://api.litcoin.app(the full /v1/mcp + /v1/data/x402 surface)https://litcoin.app/.well-known/base-mcp/litcoin.md(self-hosted copy of this spec)Verification (live, 2026-05-26)
oracle/pricewith a documented DexScreener fallback URL)paymentRequirementswhenX-PAYMENTheader is missingContact
0x316ffb9c875f900AdCF04889E415cC86b564EBa3(Base)Test plan
Readthe plugin spec atskills/base-mcp/plugins/litcoin.mdGET https://api.litcoin.app/v1/mcp/addresses→ returns chain + contract mapGET https://api.litcoin.app/v1/mcp/state/0xc1ae2db18ee47c97bd7b83165f3afea0d9c31f3c→ returns balances + staking + vaults + claimablePOST https://api.litcoin.app/v1/data/x402/onboard/pilotwith no X-PAYMENT → HTTP 402 with paymentRequirements🤖 Generated with Claude Code