api.loyalspark.online

Onchain loyalty protocol on Base L2. Launch B20 rewards (Base-native B20 asset standard, ERC-20 compatible), earn and redeem tokens, trade P2P, automate with AI agents via REST and MCP.

InfraLiveeip155:8453Exactvia facilitator:thirdweb

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

Calls · 30d
118↑ 58%
This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 32 snapshots so far.
$23.27
Verified settled volume
4,996 settlements since 2026-11-05, relayed by a known x402 facilitator. Last 30 days: $23.27.
$0.0010
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
0x7ac3…623f0x40a8…ad8bBaseBase$0.005100%Coinbase CDP11d ago0x0e1a71…60f648
0xbcf2…c3080x40a8…ad8bBaseBase$0.005100%Coinbase CDP11d ago0x908931…a0fc71
0xb1de…3d220x40a8…ad8bBaseBase$0.005100%Coinbase CDP11d ago0x4f49fe…5c9450
0xe2c9…e95e0x40a8…ad8bBaseBase$0.005100%Coinbase CDP11d ago0x696fe2…5af77f
0xe79e…1b7e0x40a8…ad8bBaseBase$0.01100%Coinbase CDP11d ago0x75c3f1…d00510
0xe79e…1b7e0x40a8…ad8bBaseBase$0.01100%Coinbase CDP11d ago0x6786bd…425561
0x0fb2…433c0x40a8…ad8bBaseBase$0.005100%Coinbase CDP11d ago0x8f6c0d…8fc37f
0xbae4…337f0x40a8…ad8bBaseBase$0.005100%Coinbase CDP11d ago0x0a1594…346eef
0x8d87…ad7b0x40a8…ad8bBaseBase$0.005100%Coinbase CDP11d ago0xe4dbb4…a7438e
0xdf69…557a0x40a8…ad8bBaseBase$0.01100%Coinbase CDP11d ago0x9ec857…0bb094
0x5325…5da60x40a8…ad8bBaseBase$0.01100%Coinbase CDP11d ago0x12f9ac…cb1a24
0x97f6…b47d0x40a8…ad8bBaseBase$0.005100%Coinbase CDP11d ago0x598690…433e28
0xbe41…b3170x40a8…ad8bBaseBase$0.005100%Coinbase CDP11d ago0x733a17…fabe42
0xb5f1…86110x40a8…ad8bBaseBase$0.005100%Coinbase CDP11d ago0x2a3d9d…9533f3
0x35ed…4f580x40a8…ad8bBaseBase$0.005100%Coinbase CDP11d ago0x938bf2…b0a2eb
0xcd84…2d490x40a8…ad8bBaseBase$0.01100%Coinbase CDP11d ago0x55e0b2…cba723
0xacb2…2c050x40a8…ad8bBaseBase$0.005100%Coinbase CDP11d ago0xb70102…5f8a88
0xa032…cd010x40a8…ad8bBaseBase$0.005100%Coinbase CDP11d ago0x11ab64…ebb8fa
0x149a…98a20x40a8…ad8bBaseBase$0.001100%Coinbase CDP11d ago0xfc170b…05a478
0x35f4…f7200x40a8…ad8bBaseBase$0.005100%Coinbase CDP11d ago0xe69014…49f426
0x4c39…ac030x40a8…ad8bBaseBase$0.01100%Coinbase CDP11d ago0x15aa01…21d768
0xdd25…34680x40a8…ad8bBaseBase$0.001100%Coinbase CDP11d ago0x3bd2e4…8d6c66
0x8d87…ad7b0x40a8…ad8bBaseBase$0.001100%Coinbase CDP11d ago0xd9fc82…52a669
0x868c…af500x40a8…ad8bBaseBase$0.001100%Coinbase CDP11d ago0x86f9d0…5b3350
0x5325…5da60x40a8…ad8bBaseBase$0.005100%Coinbase CDP11d ago0x224095…a6578d

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": "PAYMENT-SIGNATURE header is required (x402 v2; X-PAYMENT is the legacy name). Pay-only works: the paying wallet is the caller; API key optional. POST a JSON-RPC body: {\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"get_my_loyalty_balance\",\"arguments\":{...}}} (bare arguments or {\"arguments\":{...}} are wrapped for you).",
  "accepts": [
    {
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "extra": {
        "name": "USD Coin",
        "brand": "Loyal Spark",
        "mcpTool": "get_my_loyalty_balance",
        "version": "2",
        "website": "https://loyalspark.online",
        "provider": "Loyal Spark",
        "mcpServer": "https://api.loyalspark.online/recipient-loyalty-mcp",
        "builderCode": "bc_wdmnog7m",
        "description": "Loyal Spark Recipient 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/recipient-loyalty-mcp. Pay-only works: the paying wallet is the caller; API key optional.",
        "documentation": "https://loyalspark.online/for-agents"
      },
      "payTo": "0x40a8CdD6a10EC1a8cB3dFb2834675e7a2CF4ad8b",
      "amount": "1000",
      "scheme": "exact",
      "network": "eip155:8453",
      "mimeType": "application/json",
      "resource": "https://api.loyalspark.online/x402-gateway/recipient-mcp-tools/get_my_loyalty_balance",
      "extensions": {
        "bazaar": {
          "info": {
            "mcp": {
              "body": "Tool arguments as the JSON body, or the JSON-RPC tools/call envelope.",
              "server": "https://api.loyalspark.online/recipient-loyalty-mcp",
              "toolName": "get_my_loyalty_balance",
              "transport": "streamable-http"
            },
            "input": {
              "body": {
                "token_address": "0xb2000000000000000000008ce542828ec5f09bb7"
              },
              "type": "http",
              "method": "POST",
              "headers": {},
              "bodyType": "json"
            },
            "output": {
              "type": "json",
              "example": {
                "id": 1,
                "result": {
                  "content": [
                    {
                      "text": "{...}",
                      "type": "text"
                    }
                  ],
                  "structuredContent": {}
                },
                "jsonrpc": "2.0"
              }
            },
            "inputSchema": {
              "type": "object",
              "properties": {
                "token_address": {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]{40}$",
                  "description": "Loyalty program B20/ERC-20 contract on Base. Defaults to the demo LSCSC token when the call has no input."
                }
              },
              "description": "A call with no input is answered for the demo program LSCSC (0xb2000000000000000000008ce542828ec5f09bb7). Pass your own token_address for your own result.",
              "x-bare-call-default": "inject"
            }
          },
          "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": "Balance and tier for one loyalty program token held by the authenticated recipient wallet. Onchain loyalty on Base: brands launch rewards in minutes, customers earn with every purchase, AI agents automate the rest via REST and MCP. Pay-only works: the paying wallet is the caller; API key optional.",
      "outputSchema": {
        "input": {
          "type": "mcp",
          "toolName": "get_my_loyalty_balance",
          "transport": "streamable-http",
          "description": "Balance and tier for one loyalty program token held by the authenticated recipient wallet. Pay-only works: the paying wallet is the caller; API key optional.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "token_address": {
                "type": "string",
                "pattern": "^0x[a-fA-F0-9]{40}$",
                "description": "Loyalty program B20/ERC-20 contract on Base. Defaults to the demo LSCSC token when the call has no input."
              }
            },
            "description": "A call with no input is answered for the demo program LSCSC (0xb2000000000000000000008ce542828ec5f09bb7). Pass your own token_address for your own result.",
            "x-bare-call-default": "inject"
          }
        }
      },
      "maxAmountRequired": "1000",
      "maxTimeoutSeconds": 300
    }
  ],
  "charged": false,
  "resource": {
    "url": "https://api.loyalspark.online/x402-gateway/recipient-mcp-tools/get_my_loyalty_balance",
    "method": "POST",
    "mimeType": "application/json",
    "description": "Balance and tier for one loyalty program token held by the authenticated recipient wallet. Onchain loyalty on Base: brands launch rewards in minutes, customers earn with every purchase, AI agents automate the rest via REST and MCP. Pay-only works: the paying wallet is the caller; API key optional."
  },
  "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/recipient-loyalty-mcp",
          "toolName": "get_my_loyalty_balance",
          "transport": "streamable-http"
        },
        "input": {
          "body": {
            "token_address": "0xb2000000000000000000008ce542828ec5f09bb7"
          },
          "type": "http",
          "method": "POST",
          "headers": {},
          "bodyType": "json"
        },
        "output": {
          "type": "json",
          "example": {
            "id": 1,
            "result": {
              "content": [
                {
                  "text": "{...}",
                  "type": "text"
                }
              ],
              "structuredContent": {}
            },
            "jsonrpc": "2.0"
          }
        },
        "inputSchema": {
          "type": "object",
          "properties": {
            "token_address": {
              "type": "string",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "description": "Loyalty program B20/ERC-20 contract on Base. Defaults to the demo LSCSC token when the call has no input."
            }
          },
          "description": "A call with no input is answered for the demo program LSCSC (0xb2000000000000000000008ce542828ec5f09bb7). Pass your own token_address for your own result.",
          "x-bare-call-default": "inject"
        }
      },
      "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": {
    "docs": "https://loyalspark.online/.well-known/skills/00-getting-started.md",
    "action": "pay",
    "openapi": "https://loyalspark.online/openapi-lite.json",
    "request": {
      "url": "https://api.loyalspark.online/x402-gateway/recipient-mcp-tools/get_my_loyalty_balance",
      "body": {
        "id": 1,
        "method": "tools/call",
        "params": {
          "name": "get_my_loyalty_balance",
          "arguments": {
            "token_address": "0x0000000000000000000000000000000000000001"
          }
        },
        "jsonrpc": "2.0"
      },
      "method": "POST",
      "headers": {
        "Content-Type": "application/json"
      }
    },
    "summary": "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.",
    "llms_txt": "https://loyalspark.online/llms.txt",
    "discovery": "https://api.loyalspark.online/.well-known/x402",
    "workflows": "https://loyalspark.online/.well-known/skills/13-endpoint-workflows.md",
    "how_to_pay": {
      "docs": "https://loyalspark.online/.well-known/skills/15-payment-scenarios.md",
      "example": "import { wrapFetchWithPayment } from '@x402/fetch'; const pay = wrapFetchWithPayment(fetch, client); await pay(url, { method, headers: { 'Content-Type': 'application/json' }, body });",
      "summary": "Decode the base64 PAYMENT-REQUIRED header (same object as this body's accepts), sign an EIP-3009 USDC authorization for the exact amount, and resend the SAME request with header PAYMENT-SIGNATURE: <base64 payload> (X-PAYMENT is the legacy v1 name). The success response carries PAYMENT-RESPONSE (base64 JSON). Calls that fail or do not settle return charged:false.",
      "protocol": "x402 v2 (USDC on Base, eip155:8453)"
    },
    "retry_safe": true,
    "openapi_full": "https://loyalspark.online/openapi.json"
  },
  "retry_safe": true,
  "x402Version": 2,
  "key_required": false,
  "example_input": {
    "arguments": {
      "token_address": "0xb2000000000000000000008ce542828ec5f09bb7"
    }
  },
  "example_request": {
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "get_my_loyalty_balance",
      "arguments": {}
    },
    "jsonrpc": "2.0"
  },
  "default_without_input": "A paid call with no input is not rejected: it is charged and returns a default answer for the demo program LSCSC (and the public catalog) with the inputs to pass for your own data."
}

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.001USDC≈ $0.001 USD
on Base · exact scheme

Pay 0.001 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
1000 smallest units
Buys
Balance and tier for one loyalty program token held by the authenticated recipient wallet. Loyal Spark: loyalty points, rewards & vouchers API on Base (REST + MCP, USDC via x402). Pay-only works: the…
Returns
application/json
The catalog’s raw entry
[
  {
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "payTo": "0x40a8CdD6a10EC1a8cB3dFb2834675e7a2CF4ad8b",
    "scheme": "exact",
    "network": "eip155:8453",
    "mimeType": "application/json",
    "resource": "https://api.loyalspark.online/x402-gateway/recipient-mcp-tools/get_my_loyalty_balance",
    "description": "Balance and tier for one loyalty program token held by the authenticated recipient wallet. Loyal Spark: loyalty points, rewards & vouchers API on Base (REST + MCP, USDC via x402). Pay-only works: the…",
    "maxAmountRequired": "1000",
    "maxTimeoutSeconds": 300
  }
]

Provenance

Seen in the source catalog
2026-11-29 16:52Z
Last indexed by Roundhouse
2026-11-29 17:15Z
Last enriched (probe, favicon, geo)
2026-11-10 03:15Z
x402 version
1
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. 32 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/recipient-mcp-tools/get_my_loyalty_balance, 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.