# Loyal Spark – Prepare Loyalty Token Transfer

> Loyal Spark – Prepare Loyalty Token Transfer is a paid API for AI agents from api.loyalspark.online, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Prepares an onchain ERC-20 loyalty token transfer transaction on Base L2, returning the unsigned transaction payload ready for signing and broadcast.

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/recipient-mcp-tools/prepare_loyalty_token_transfer
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/loyal-spark-prepare-loyalty-token-transfer-28a01a15
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fRi1T0YZkJz3NiFcbpkbB

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-prepare-loyalty-token-transfer-28a01a15 -d '<json body>'
```

Example prompt: Prepare a loyalty token transfer on Loyal Spark to send 500 SPARK tokens from my wallet 0xABC...123 to customer wallet 0xDEF...456 on Base — I need the unsigned transaction payload so I can sign and broadcast it.

## When to prefer this

Use this endpoint when an AI agent needs to programmatically prepare a loyalty token transfer on Base L2 within the Loyal Spark protocol, especially before signing and broadcasting a transaction. Prefer this over a generic ERC-20 tool when working within the Loyal Spark ecosystem's reward token contracts.

## Known failure modes

- Invalid recipient or sender wallet address returns 400 validation error
- Insufficient token balance on sender address returns error payload
- Unsupported or unrecognized token contract address returns 422
- Malformed request body missing required fields returns 400
- Network congestion or RPC failure on Base L2 returns 503
- Payment of $0.005 USDC not fulfilled returns 402 payment required

## 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 unsigned transaction payload including to/from addresses, encoded calldata, gas estimate, chain ID (Base L2), and token transfer parameters, ready to be signed and submitted to the network.

## 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-prepare-loyalty-token-transfer-28a01a15/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)
