Skip to content

feat: add Loyal Spark to ecosystem#1903

Open
aspekt19 wants to merge 2 commits intox402-foundation:mainfrom
aspekt19:main
Open

feat: add Loyal Spark to ecosystem#1903
aspekt19 wants to merge 2 commits intox402-foundation:mainfrom
aspekt19:main

Conversation

@aspekt19
Copy link
Copy Markdown

@aspekt19 aspekt19 commented Apr 2, 2026

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

@cb-heimdall
Copy link
Copy Markdown

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 2, 2026

@aspekt19 is attempting to deploy a commit to the Coinbase Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added ecosystem Additions to ecosystem site website labels Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ecosystem Additions to ecosystem site website

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants