feat: add Loyal Spark to ecosystem#1903
Open
aspekt19 wants to merge 2 commits intox402-foundation:mainfrom
Open
feat: add Loyal Spark to ecosystem#1903aspekt19 wants to merge 2 commits intox402-foundation:mainfrom
aspekt19 wants to merge 2 commits intox402-foundation:mainfrom
Conversation
🟡 Heimdall Review Status
|
|
@aspekt19 is attempting to deploy a commit to the Coinbase Team on Vercel. A member of the Team first needs to authorize it. |
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.
Add Loyal Spark to x402 Ecosystem
Category: Services/Endpoints
What it does
Loyal Spark is an onchain loyalty protocol on Base L2 (chain ID 8453). Merchants and AI agents create and manage ERC-20 loyalty programs via REST (agent-api) and MCP (loyalty-mcp), with optional pay-per-request through the x402 gateway (USDC on Base). MCP is also available as a paid x402 resource: …/x402-gateway/mcp-tools/ (JSON-RPC tools/call); after HTTP 402 → pay → 200, the same agent uses x-api-key: lsk_... as for direct MCP. Autonomous agents can obtain a free lsk_ via SIWE (no web login) through the agent-register-siwe Edge Function (see repo).
x402 integration (production)
Gateway (public): https://bzxmejzssxjazswgwqqs.supabase.co/functions/v1/x402-gateway
x402Version: 2
Network: Base mainnet — CAIP-2 eip155:8453 (not the string base in accepts)
Asset: USDC on Base 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
Verify / settle: In our deployment, Base mainnet uses the Coinbase CDP x402 API: https://api.cdp.coinbase.com/platform/v2/x402 (JWT with CDP_API_KEY_ID / CDP_API_KEY_SECRET on the gateway). The public https://x402.org/facilitator is a reference for the protocol; for v2 exact on mainnet we do not rely on it as the sole facilitator.
Bazaar-oriented metadata for MCP routes is included in HTTP 402 bodies (extensions.bazaar); tool ids and JSON Schemas are defined in-repo: supabase/functions/_shared/mcp-bazaar-tools.ts.
Links
Website: https://loyalspark.online/
Agents: https://loyalspark.online/for-agents
API docs: https://loyalspark.online/api-docs
OpenAPI: https://loyalspark.online/openapi.json
llms.txt: https://loyalspark.online/llms.txt
Repo: https://github.com/aspekt19/unboxed-loyalty-spark