{"uid":"cap_U7Fl8e6SEjyta9Dum7fiq","slug":"loyal-spark-create-p2p-offer-be5b3efd","name":"Loyal Spark Create P2P Offer","description":"Onchain loyalty protocol on Base L2. Launch B20 rewards, earn and redeem tokens, trade P2P, automate with AI agents via REST and MCP.","url":"https://api.loyalspark.online/x402-gateway/recipient-mcp-tools/create_p2p_offer","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","toolName","inputSchema"],"properties":{"type":{"type":"string","const":"mcp"},"example":{"type":"object"},"toolName":{"type":"string"},"transport":{"enum":["streamable-http","sse"],"type":"string"},"description":{"type":"string"},"inputSchema":{"type":"object"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{}}}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4ytq6KjxPP6QjdiB7SJpx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Creates a peer-to-peer trade offer for onchain ERC-20 loyalty reward tokens on the Base L2 network via the Loyal Spark protocol.","exampleAgentPrompt":"On Loyal Spark, create a P2P sell offer for 500 of my SPARK loyalty tokens at 0.05 USDC each from my wallet 0xABC123 — I want to list them so another user can buy them directly.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the newly created P2P offer ID, offer details (token address, amount, price), listing status, and any relevant onchain transaction reference or offer URL on the Loyal Spark protocol.","failureModes":["Insufficient token balance in seller wallet — offer creation rejected","Invalid or non-ERC-20 token address provided — validation error","Wallet address malformed or missing — 400 bad request","Payment of $0.01 USDC via x402 not completed — 402 payment required","Token not supported or not registered on Loyal Spark protocol — 404 or 422 error","Network congestion on Base L2 causing delayed confirmation","Offer price below minimum threshold — rejected with validation error"],"whenToPreferThis":"Use this endpoint when an AI agent or user needs to programmatically create a new peer-to-peer trade listing for ERC-20 loyalty tokens on the Loyal Spark protocol running on Base L2. Prefer this over generic DEX integrations when the tokens are specifically Loyal Spark loyalty reward tokens and a direct P2P offer (not an AMM swap) is desired.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:34:09.633Z","isFirstParty":false}