api.loyalspark.online

Build factory calldata to deploy a new B20 loyalty token on Base (default token_standard b20: one tx, active at once; erc20 = legacy factory plus activate). Submit the tx from the merchant or agent wallet. Loyal Spark: loyalty points…

DataLiveeip155:8453Exactvia wellknown:api.loyalspark.online

Part of api.loyalspark.online · 56 endpoints · See the whole service

Calls · 30d
2→ 0%
This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 21 snapshots so far.
$22.13
Verified settled volume
4,781 settlements since 2026-11-05, relayed by a known x402 facilitator. Last 30 days: $22.13.
$0.010
Listed price
As published in the catalog. Always read the live 402 before paying.
–
Calls · 30d
Upstream's own call count for this endpoint, not ours.
–
Unique payers · 30d
Never called
Paid to
0x40a8CdD6a10EC1a8cB3dFb2834675e7a2CF4ad8b

The wallet the 402 directs payment to. Its full payment record is on the merchant page.

Asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Provider

The payTo wallet does not resolve to a registered ERC-8004 agent. That is not a verdict on the service; most of the catalog is unregistered.

Recent payments · which agents last used it

Every indexed settlement paid to this service’s wallet, newest first. The index does not record which endpoint a payment was for, so if this wallet serves more than one endpoint, the rows include payments for the others. Paged up to the newest 5,000; the full history is on the merchant page.

Payer PayeeChainAmountx402RouteAgeTxn hash
0xdd25…34680x40a8…ad8bBaseBase$0.01100%Coinbase CDP3d ago0x5cb527…e1caa8
0xbae4…337f0x40a8…ad8bBaseBase$0.001100%Coinbase CDP3d ago0xa08a17…189c1d
0xbae4…337f0x40a8…ad8bBaseBase$0.005100%Coinbase CDP3d ago0x96a89f…0d803e
0xbae4…337f0x40a8…ad8bBaseBase$0.001100%Coinbase CDP3d ago0x5605e2…4060f6
0x464d…48e70x40a8…ad8bBaseBase$0.005100%Coinbase CDP3d ago0x85b9bc…962c35
0x464d…48e70x40a8…ad8bBaseBase$0.005100%Coinbase CDP3d ago0x58f0ee…a4b837
0x464d…48e70x40a8…ad8bBaseBase$0.01100%Coinbase CDP3d ago0xb205c4…33b2f2
0x7a23…397b0x40a8…ad8bBaseBase$0.005100%Coinbase CDP3d ago0x4c4dd0…fc617d
0xd344…b3fd0x40a8…ad8bBaseBase$0.001100%Coinbase CDP3d ago0x30dea9…cea270
0xd344…b3fd0x40a8…ad8bBaseBase$0.01100%Coinbase CDP3d ago0x5ef139…1d4823
0x149a…98a20x40a8…ad8bBaseBase$0.001100%Coinbase CDP3d ago0x83d1e2…010508
0xd344…b3fd0x40a8…ad8bBaseBase$0.005100%Coinbase CDP3d ago0x017edf…1d76af
0x09ca…55a00x40a8…ad8bBaseBase$0.001100%Coinbase CDP3d ago0x03556c…e70eaa
0x60b5…4b4d0x40a8…ad8bBaseBase$0.005100%Coinbase CDP3d ago0x424900…6b059b
0xdd25…34680x40a8…ad8bBaseBase$0.01100%Coinbase CDP3d ago0x9c8239…8ee213
0x2ede…bcaa0x40a8…ad8bBaseBase$0.001100%Coinbase CDP3d ago0xae0146…a53c86
0x1203…60260x40a8…ad8bBaseBase$0.001100%Coinbase CDP3d ago0xc21241…9af5f7
0x23a2…84ff0x40a8…ad8bBaseBase$0.001100%Coinbase CDP3d ago0xd9ac1e…bb4fee
0x24c9…736f0x40a8…ad8bBaseBase$0.001100%Coinbase CDP3d ago0x604d16…f17a68
0x3a17…f2c40x40a8…ad8bBaseBase$0.005100%Coinbase CDP3d ago0xb2235a…afa5bd
0x1203…60260x40a8…ad8bBaseBase$0.001100%Coinbase CDP3d ago0x3a4f9e…375ab3
0xdd95…59bb0x40a8…ad8bBaseBase$0.005100%Coinbase CDP3d ago0xce8576…0285ff
0xf13d…a74f0x40a8…ad8bBaseBase$0.01100%Coinbase CDP3d ago0x5df074…f0759e
0x3a17…f2c40x40a8…ad8bBaseBase$0.01100%Coinbase CDP3d ago0x305023…afb762
0xa3e1…20d90x40a8…ad8bBaseBase$0.01100%Coinbase CDP3d ago0x0253bf…92756b

Live 402 challenge

Captured by the enrichment pass, not read just now. Prices can change. Always read the 402 the endpoint answers with.

{
  "code": "payment_required",
  "hint": "Pay with x402: resend the same request with PAYMENT-SIGNATURE (base64 payload signed for the PAYMENT-REQUIRED accepts). X-PAYMENT is the legacy header name. Docs: https://loyalspark.online/.well-known/skills/00-getting-started.md",
  "error": "Key required first (a payment without it is rejected, not charged): x-api-key lsk_... One call gets it: POST https://api.loyalspark.online/x402-gateway/register-agent {\"agent_name\":\"my-agent\"} ($0.01 x402) returns api_key; then resend with x-api-key + PAYMENT-SIGNATURE. PAYMENT-SIGNATURE header is required (x402 v2; X-PAYMENT is the legacy name). Send x-api-key: lsk_... (or Authorization: Bearer lsk_...) with the payment; without a live key you are not charged. Merchant lsk_: POST https://api.loyalspark.online/x402-gateway/register-agent ($0.01 USDC; Free plan: 1 agent, 200 calls/mo, 1,000 mint tokens/mo, 1.25% fee, all 5 scopes: read, create_program, mint, trade, manage_rewards; or capped to your Store/Agent plan, e.g. Starter cannot mint). Or POST https://api.loyalspark.online/agent-register-siwe after SIWE (statement Register Loyal Spark merchant agent) with a Store/Agent plan or existing agent; otherwise 402 payment_required (pay_x402). Guide: https://loyalspark.online/.well-known/skills/00-getting-started.md POST a JSON-RPC body: {\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"create_loyalty_program\",\"arguments\":{...}}} (bare arguments or {\"arguments\":{...}} are wrapped for you).",
  "accepts": [
    {
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "extra": {
        "name": "USD Coin",
        "brand": "Loyal Spark",
        "mcpTool": "create_loyalty_program",
        "version": "2",
        "website": "https://loyalspark.online",
        "provider": "Loyal Spark",
        "mcpServer": "https://api.loyalspark.online/loyalty-mcp",
        "builderCode": "bc_wdmnog7m",
        "description": "Loyal Spark MCP. POST the tool arguments as the JSON body (or the JSON-RPC tools/call body) to this x402 URL, then repeat it with PAYMENT-SIGNATURE / X-PAYMENT; gateway forwards to https://api.loyalspark.online/loyalty-mcp. Send x-api-key: lsk_... (or Authorization: Bearer lsk_...) with the payment; without a live key you are not charged.",
        "documentation": "https://loyalspark.online/for-agents"
      },
      "payTo": "0x40a8CdD6a10EC1a8cB3dFb2834675e7a2CF4ad8b",
      "amount": "10000",
      "scheme": "exact",
      "network": "eip155:8453",
      "mimeType": "application/json",
      "resource": "https://api.loyalspark.online/x402-gateway/mcp-tools/create_loyalty_program",
      "extensions": {
        "bazaar": {
          "info": {
            "mcp": {
              "body": "Tool arguments as the JSON body, or the JSON-RPC tools/call envelope.",
              "server": "https://api.loyalspark.online/loyalty-mcp",
              "toolName": "create_loyalty_program",
              "transport": "streamable-http"
            },
            "input": {
              "body": {
                "name": "Demo Cafe Rewards",
                "symbol": "CAFE"
              },
              "type": "http",
              "method": "POST",
              "headers": {
                "x-api-key": "lsk_..."
              },
              "bodyType": "json"
            },
            "output": {
              "type": "json",
              "example": {
                "id": 1,
                "result": {
                  "content": [
                    {
                      "text": "{...}",
                      "type": "text"
                    }
                  ],
                  "structuredContent": {}
                },
                "jsonrpc": "2.0"
              }
            },
            "inputSchema": {
              "type": "object",
              "required": [
                "name",
                "symbol"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Program display name (max 50 characters)."
                },
                "locale": {
                  "type": "string"
                },
                "symbol": {
                  "type": "string",
                  "description": "Token symbol (2–5 characters)."
                },
                "auto_generate": {
                  "type": "boolean",
                  "description": "Internal automation only — fills missing name/symbol from examples. External agents should pass explicit name and symbol."
                },
                "extra_minters": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^0x[a-fA-F0-9]{40}$",
                    "description": "EVM address on Base mainnet (eip155:8453)."
                  },
                  "description": "(B20) More addresses granted MINT_ROLE in the same deploy tx."
                },
                "token_standard": {
                  "enum": [
                    "b20",
                    "erc20"
                  ],
                  "type": "string",
                  "default": "b20",
                  "description": "b20 (default): Base-native B20, single tx. erc20: legacy factory, needs activate_loyalty_program."
                },
                "expiration_days": {
                  "type": "number",
                  "description": "Program lifetime in days (default 365)."
                },
                "preferred_style": {
                  "type": "string"
                },
                "target_audience": {
                  "type": "string"
                },
                "business_context": {
                  "type": "object",
                  "description": "Optional context for examples only"
                },
                "agent_wallet_address": {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]{40}$",
                  "description": "(B20) Extra wallet granted MINT_ROLE in the deploy tx. Default: the agent's CDP wallet."
                }
              },
              "x-required-headers": {
                "x-api-key": {
                  "required": true,
                  "get_key_url": "https://api.loyalspark.online/x402-gateway/register-agent"
                }
              }
            }
          },
          "schema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "input"
            ],
            "properties": {
              "input": {
                "type": "object",
                "required": [
                  "type",
                  "method",
                  "bodyType",
                  "body"
                ],
                "properties": {
                  "body": {
                    "type": "object"
                  },
                  "type": {
                    "type": "string",
                    "const": "http"
                  },
                  "method": {
                    "enum": [
                      "POST",
                      "PUT",
                      "PATCH"
                    ],
                    "type": "string"
                  },
                  "headers": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "bodyType": {
                    "enum": [
                      "json",
                      "form-data",
                      "text"
                    ],
                    "type": "string"
                  },
                  "queryParams": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": false
              },
              "output": {
                "type": "object",
                "required": [
                  "type"
                ],
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "example": {}
                }
              },
              "inputSchema": {
                "type": "object"
              }
            }
          }
        },
        "builder-code": {
          "info": {
            "a": "bc_wdmnog7m"
          },
          "schema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "a": {
                "type": "string",
                "pattern": "^[a-z0-9_]{1,32}$",
                "description": "App builder code"
              },
              "s": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9_]{1,32}$"
                },
                "description": "Service builder codes"
              },
              "w": {
                "type": "string",
                "pattern": "^[a-z0-9_]{1,32}$",
                "description": "Wallet builder code"
              }
            },
            "additionalProperties": false
          }
        }
      },
      "description": "Build factory calldata to deploy a new B20 loyalty token on Base (default token_standard b20: one tx, active at once; erc20 = legacy factory plus activate). Submit the tx from the merchant or agent wallet. Onchain loyalty on Base: brands launch rewards in minutes, customers earn with every purchase, AI agents automate the rest via REST and MCP. Send x-api-key: lsk_... (or Authorization: Bearer lsk_...) with the payment; without a live key you are not charged.",
      "outputSchema": {
        "input": {
          "type": "mcp",
          "toolName": "create_loyalty_program",
          "transport": "streamable-http",
          "description": "Build factory calldata to deploy a new B20 loyalty token on Base (default token_standard b20: one tx, active at once; erc20 = legacy factory plus activate). Submit the tx from the merchant or agent wallet. Send x-api-key: lsk_... (or Authorization: Bearer lsk_...) with the payment; without a live key you are not charged.",
          "inputSchema": {
            "type": "object",
            "required": [
              "name",
              "symbol"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Program display name (max 50 characters)."
              },
              "locale": {
                "type": "string"
              },
              "symbol": {
                "type": "string",
                "description": "Token symbol (2–5 characters)."
              },
              "auto_generate": {
                "type": "boolean",
                "description": "Internal automation only — fills missing name/symbol from examples. External agents should pass explicit name and symbol."
              },
              "extra_minters": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]{40}$",
                  "description": "EVM address on Base mainnet (eip155:8453)."
                },
                "description": "(B20) More addresses granted MINT_ROLE in the same deploy tx."
              },
              "token_standard": {
                "enum": [
                  "b20",
                  "erc20"
                ],
                "type": "string",
                "default": "b20",
                "description": "b20 (default): Base-native B20, single tx. erc20: legacy factory, needs activate_loyalty_program."
              },
              "expiration_days": {
                "type": "number",
                "description": "Program lifetime in days (default 365)."
              },
              "preferred_style": {
                "type": "string"
              },
              "target_audience": {
                "type": "string"
              },
              "business_context": {
                "type": "object",
                "description": "Optional context for examples only"
              },
              "agent_wallet_address": {
                "type": "string",
                "pattern": "^0x[a-fA-F0-9]{40}$",
                "description": "(B20) Extra wallet granted MINT_ROLE in the deploy tx. Default: the agent's CDP wallet."
              }
            },
            "x-required-headers": {
              "x-api-key": {
                "required": true,
                "get_key_url": "https://api.loyalspark.online/x402-gateway/register-agent"
              }
            }
          }
        }
      },
      "maxAmountRequired": "10000",
      "maxTimeoutSeconds": 300
    }
  ],
  "api_key": {
    "format": "lsk_...",
    "header": "x-api-key",
    "required": true,
    "how_to_get": "Get a merchant lsk_ key: POST https://api.loyalspark.online/x402-gateway/register-agent ($0.01 USDC, Free plan) or SIWE then POST https://api.loyalspark.online/agent-register-siwe.",
    "alternative": "Authorization: Bearer lsk_...",
    "get_key_url": "https://api.loyalspark.online/x402-gateway/register-agent"
  },
  "resource": {
    "url": "https://api.loyalspark.online/x402-gateway/mcp-tools/create_loyalty_program",
    "method": "POST",
    "mimeType": "application/json",
    "description": "Build factory calldata to deploy a new B20 loyalty token on Base (default token_standard b20: one tx, active at once; erc20 = legacy factory plus activate). Submit the tx from the merchant or agent wallet. Onchain loyalty on Base: brands launch rewards in minutes, customers earn with every purchase, AI agents automate the rest via REST and MCP. Send x-api-key: lsk_... (or Authorization: Bearer lsk_...) with the payment; without a live key you are not charged."
  },
  "error_code": "payment_required",
  "extensions": {
    "bazaar": {
      "info": {
        "mcp": {
          "body": "Tool arguments as the JSON body, or the JSON-RPC tools/call envelope.",
          "server": "https://api.loyalspark.online/loyalty-mcp",
          "toolName": "create_loyalty_program",
          "transport": "streamable-http"
        },
        "input": {
          "body": {
            "name": "Demo Cafe Rewards",
            "symbol": "CAFE"
          },
          "type": "http",
          "method": "POST",
          "headers": {
            "x-api-key": "lsk_..."
          },
          "bodyType": "json"
        },
        "output": {
          "type": "json",
          "example": {
            "id": 1,
            "result": {
              "content": [
                {
                  "text": "{...}",
                  "type": "text"
                }
              ],
              "structuredContent": {}
            },
            "jsonrpc": "2.0"
          }
        },
        "inputSchema": {
          "type": "object",
          "required": [
            "name",
            "symbol"
          ],
          "properties": {
            "name": {
              "type": "string",
              "description": "Program display name (max 50 characters)."
            },
            "locale": {
              "type": "string"
            },
            "symbol": {
              "type": "string",
              "description": "Token symbol (2–5 characters)."
            },
            "auto_generate": {
              "type": "boolean",
              "description": "Internal automation only — fills missing name/symbol from examples. External agents should pass explicit name and symbol."
            },
            "extra_minters": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^0x[a-fA-F0-9]{40}$",
                "description": "EVM address on Base mainnet (eip155:8453)."
              },
              "description": "(B20) More addresses granted MINT_ROLE in the same deploy tx."
            },
            "token_standard": {
              "enum": [
                "b20",
                "erc20"
              ],
              "type": "string",
              "default": "b20",
              "description": "b20 (default): Base-native B20, single tx. erc20: legacy factory, needs activate_loyalty_program."
            },
            "expiration_days": {
              "type": "number",
              "description": "Program lifetime in days (default 365)."
            },
            "preferred_style": {
              "type": "string"
            },
            "target_audience": {
              "type": "string"
            },
            "business_context": {
              "type": "object",
              "description": "Optional context for examples only"
            },
            "agent_wallet_address": {
              "type": "string",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "description": "(B20) Extra wallet granted MINT_ROLE in the deploy tx. Default: the agent's CDP wallet."
            }
          },
          "x-required-headers": {
            "x-api-key": {
              "required": true,
              "get_key_url": "https://api.loyalspark.online/x402-gateway/register-agent"
            }
          }
        }
      },
      "schema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "required": [
          "input"
        ],
        "properties": {
          "input": {
            "type": "object",
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "properties": {
              "body": {
                "type": "object"
              },
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "headers": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "queryParams": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "type": "string"
              },
              "example": {}
            }
          },
          "inputSchema": {
            "type": "object"
          }
        }
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_wdmnog7m"
      },
      "schema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "a": {
            "type": "string",
            "pattern": "^[a-z0-9_]{1,32}$",
            "description": "App builder code"
          },
          "s": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-z0-9_]{1,32}$"
            },
            "description": "Service builder codes"
          },
          "w": {
            "type": "string",
            "pattern": "^[a-z0-9_]{1,32}$",
            "description": "Wallet builder code"
          }
        },
        "additionalProperties": false
      }
    }
  },
  "next_steps": [
    {
      "url": "https://api.loyalspark.online/x402-gateway/register-agent",
      "body": {
        "agent_name": "my-agent"
      },
      "step": 1,
      "action": "get_api_key",
      "method": "POST",
      "price_usd": "0.01",
      "description": "This route needs a live lsk_... key BEFORE you pay; a payment without it is rejected and not charged. Get a merchant lsk_ key: POST https://api.loyalspark.online/x402-gateway/register-agent ($0.01 USDC, Free plan) or SIWE then POST https://api.loyalspark.online/agent-register-siwe."
    },
    {
      "step": 2,
      "action": "retry_with_key_and_payment",
      "description": "Repeat this request with header x-api-key: lsk_... and the PAYMENT-SIGNATURE header."
    }
  ],
  "x402Version": 2,
  "key_required": true,
  "example_input": {
    "arguments": {
      "name": "Demo Cafe Rewards",
      "symbol": "CAFE"
    }
  },
  "example_request": {
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "create_loyalty_program",
      "arguments": {}
    },
    "jsonrpc": "2.0"
  }
}

Accepts

The payment requirements as published to the catalog. Read the live 402 before paying: a price here is a claim, not a quote.

0.01USDC≈ $0.01 USD
on Base · exact scheme

Pay 0.01 USDC on Base to 0x40a8…4ad8b. The signed payment is good for 5 minutes.

USD Coin contract
0x8335…02913
Payment window
5 minutes
As published
10000 smallest units
Returns
application/json
The catalog’s raw entry
[
  {
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "payTo": "0x40a8CdD6a10EC1a8cB3dFb2834675e7a2CF4ad8b",
    "amount": "10000",
    "scheme": "exact",
    "network": "eip155:8453",
    "mimeType": "application/json",
    "resource": "https://api.loyalspark.online/x402-gateway/mcp-tools/create_loyalty_program",
    "maxAmountRequired": "10000",
    "maxTimeoutSeconds": 300
  }
]

Provenance

Seen in the source catalog
–
Last indexed by Roundhouse
2026-11-27 05:45Z
Last enriched (probe, favicon, geo)
2026-11-05 16:16Z
x402 version
–
Max timeout
300s
Liveness probe
HTTP 402
Report

Hand this page to an agent

Copy the prompt and paste it into Claude, an MCP client or your own agent: it will vet this service and call it over the free read API. No key, no account.

GET api.roundhouseai.io/v0/endpoints

This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 21 snapshots so far. Verified volume counts only settlements relayed by a known x402 facilitator.

Open skill.md
Show the prompt
Using Roundhouse, look up the x402 service api.loyalspark.online and tell me whether it is
worth paying: what a call costs, whether the endpoint answered when last probed, and what
its payment record actually shows.

curl -s 'https://api.roundhouseai.io/v0/endpoints?q=api.loyalspark.online'
curl -s 'https://api.roundhouseai.io/v0/merchants/<the payTo wallet returned above>'

Then call it: read the price from the live 402 at https://api.loyalspark.online/x402-gateway/mcp-tools/create_loyalty_program, never from
a cached figure, and pay with an x402 client.

The /v0 API needs an API key (`authorization: Bearer rh_live_…`) on everything except
/v0/unified* and /v0/endpoints. Either pay over x402 (mint a personal key for $0.01 at
GET https://api.roundhouseai.io/v0/test/x402), or ask me for an organization key, which I create at
https://roundhouseai.io/dashboard/connections. If you have neither, ask before going further.

If you do not have Roundhouse tools or skills installed, read
https://roundhouseai.io/skill.md first — it is the whole procedure.