# Loyal Spark Create P2P Offer

> Loyal Spark Create P2P Offer is a paid API for AI agents from api.loyalspark.online, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Creates a peer-to-peer trade offer for onchain ERC-20 loyalty reward tokens on the Base L2 network via the Loyal Spark protocol.

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/recipient-mcp-tools/create_p2p_offer
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/loyal-spark-create-p2p-offer-be5b3efd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U7Fl8e6SEjyta9Dum7fiq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability loyal-spark-create-p2p-offer-be5b3efd -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Onchain loyalty protocol on Base L2. Launch B20 rewards, earn and redeem tokens, trade P2P, automate with AI agents via REST and MCP.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/loyal-spark-create-p2p-offer-be5b3efd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.loyalspark.online](https://www.zero.xyz/host/api.loyalspark.online/llms.txt)
