api.loyalspark.online

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

DataLiveeip155:8453Exactvia cdp

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

Calls · 30d
9↑ 8.9%
This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 32 snapshots so far.
$21.51
Verified settled volume
4,667 settlements since 2026-11-05, relayed by a known x402 facilitator. Last 30 days: $21.51.
$0.0050
Listed price
As published in the catalog. Always read the live 402 before paying.
11
Calls · 30d
Upstream's own call count for this endpoint, not ours.
8
Unique payers · 30d
Last called 2026-11-29 02:15Z
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
0x5325…5da60x40a8…ad8bBaseBase$0.005100%Coinbase CDP2h ago0x7644f4…0fbbdd
0x23a2…84ff0x40a8…ad8bBaseBase$0.005100%Coinbase CDP2h ago0xbc42b6…06e754
0xd344…b3fd0x40a8…ad8bBaseBase$0.01100%Coinbase CDP2h ago0x9c5eaa…10d083
0x7ac3…623f0x40a8…ad8bBaseBase$0.01100%Coinbase CDP2h ago0xe02d5d…4cfa28
0xe3e6…ae850x40a8…ad8bBaseBase$0.005100%Coinbase CDP2h ago0x8a6566…a47f2d
0x868c…af500x40a8…ad8bBaseBase$0.001100%Coinbase CDP2h ago0x43580d…9c01b4
0x03aa…51320x40a8…ad8bBaseBase$0.001100%Coinbase CDP2h ago0xd1fe43…9d20df
0xa032…cd010x40a8…ad8bBaseBase$0.005100%Coinbase CDP2h ago0x54fbf0…56a819
0xdf69…557a0x40a8…ad8bBaseBase$0.005100%Coinbase CDP2h ago0x4a0e96…e68da7
0xbae4…337f0x40a8…ad8bBaseBase$0.001100%Coinbase CDP3h ago0x4c8a08…c9764c
0x3a17…f2c40x40a8…ad8bBaseBase$0.005100%Coinbase CDP3h ago0x2b7fec…098be3
0x0fb2…433c0x40a8…ad8bBaseBase$0.005100%Coinbase CDP3h ago0x6998e9…f22e68
0x0fb2…433c0x40a8…ad8bBaseBase$0.01100%Coinbase CDP3h ago0x1f98a2…f88534
0x03aa…51320x40a8…ad8bBaseBase$0.001100%Coinbase CDP3h ago0xef9d56…e0b7be
0xb5f1…86110x40a8…ad8bBaseBase$0.01100%Coinbase CDP3h ago0x6416ae…ad4d57
0x6bd1…7a650x40a8…ad8bBaseBase$0.005100%Coinbase CDP3h ago0xf4b0c4…fef4fd
0x7c82…59750x40a8…ad8bBaseBase$0.001100%Coinbase CDP3h ago0x1ec164…15e84c
0xa3e1…20d90x40a8…ad8bBaseBase$0.01100%Coinbase CDP3h ago0x0bdfce…476932
0xf7ce…6db70x40a8…ad8bBaseBase$0.001100%Coinbase CDP3h ago0x7cb148…b21ef4
0xe3e6…ae850x40a8…ad8bBaseBase$0.005100%Coinbase CDP4h ago0xe1f4b9…72c534
0x4855…48410x40a8…ad8bBaseBase$0.005100%Coinbase CDP4h ago0x544d95…919ecb
0x464d…48e70x40a8…ad8bBaseBase$0.005100%Coinbase CDP4h ago0x8ea3bb…1b142a
0x464d…48e70x40a8…ad8bBaseBase$0.01100%Coinbase CDP4h ago0xe3c3a1…1c1907
0x464d…48e70x40a8…ad8bBaseBase$0.001100%Coinbase CDP4h ago0x121507…aaf7a8
0xe79e…1b7e0x40a8…ad8bBaseBase$0.005100%Coinbase CDP4h ago0xc88deb…c896ee

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.",
  "accepts": [
    {
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "extra": {
        "name": "USD Coin",
        "brand": "Loyal Spark",
        "version": "2",
        "website": "https://loyalspark.online",
        "provider": "Loyal Spark",
        "builderCode": "bc_wdmnog7m",
        "description": "Fetch merchant loyalty program analytics, mint/redeem volume, and holder metrics. Loyal Spark: loyalty points, rewards & vouchers API on Base (REST + MCP, USDC via x402). Pay-only works: the paying wallet is the caller; API key optional. Scoped to the key's wallet. Docs: loyalspark.online/for-agents",
        "documentation": "https://loyalspark.online/for-agents"
      },
      "payTo": "0x40a8CdD6a10EC1a8cB3dFb2834675e7a2CF4ad8b",
      "amount": "5000",
      "scheme": "exact",
      "network": "eip155:8453",
      "mimeType": "application/json",
      "resource": "https://api.loyalspark.online/x402-gateway/analytics",
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "http",
              "method": "GET",
              "headers": {},
              "queryParams": {
                "token_address": "0xb2000000000000000000008ce542828ec5f09bb7"
              }
            },
            "output": {
              "type": "json",
              "example": {
                "ok": true,
                "resource": "analytics"
              }
            },
            "inputSchema": {
              "type": "object",
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "properties": {
                "token_address": {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]{40}$",
                  "description": "Optional: one of your programs. A program you do not own returns 404 program_not_found (not charged)."
                }
              },
              "additionalProperties": false
            }
          },
          "schema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "input"
            ],
            "properties": {
              "input": {
                "type": "object",
                "required": [
                  "type",
                  "method"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "http"
                  },
                  "method": {
                    "enum": [
                      "GET",
                      "HEAD",
                      "DELETE"
                    ],
                    "type": "string"
                  },
                  "headers": {
                    "type": "object",
                    "additionalProperties": {
                      "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": "Fetch merchant loyalty program analytics, mint/redeem volume, and holder metrics. Loyal Spark: loyalty points, rewards & vouchers API on Base (REST + MCP, USDC via x402). Pay-only works: the paying wallet is the caller; API key optional. Scoped to the key's wallet. Docs: loyalspark.online/for-agents",
      "outputSchema": {
        "input": {
          "type": "http",
          "method": "GET",
          "bodyType": "query",
          "description": "HTTP GET https://api.loyalspark.online/x402-gateway/analytics — x402-gateway /analytics. Pay-only works: the paying wallet is the caller; API key optional.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "token_address": {
                "type": "string",
                "pattern": "^0x[a-fA-F0-9]{40}$",
                "description": "Optional: one of your programs. A program you do not own returns 404 program_not_found (not charged)."
              }
            },
            "additionalProperties": false
          }
        },
        "output": {
          "type": "json",
          "schema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema"
          },
          "description": "JSON from Loyal Spark agent-api or recipient-api. See OpenAPI for response shape."
        }
      },
      "maxAmountRequired": "5000",
      "maxTimeoutSeconds": 300
    }
  ],
  "charged": false,
  "resource": {
    "url": "https://api.loyalspark.online/x402-gateway/analytics",
    "method": "GET",
    "mimeType": "application/json",
    "description": "Fetch merchant loyalty program analytics, mint/redeem volume, and holder metrics. Loyal Spark: loyalty points, rewards & vouchers API on Base (REST + MCP, USDC via x402). Pay-only works: the paying wallet is the caller; API key optional. Scoped to the key's wallet. Docs: loyalspark.online/for-agents"
  },
  "error_code": "payment_required",
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "headers": {},
          "queryParams": {
            "token_address": "0xb2000000000000000000008ce542828ec5f09bb7"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "ok": true,
            "resource": "analytics"
          }
        },
        "inputSchema": {
          "type": "object",
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "token_address": {
              "type": "string",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "description": "Optional: one of your programs. A program you do not own returns 404 program_not_found (not charged)."
            }
          },
          "additionalProperties": false
        }
      },
      "schema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "required": [
          "input"
        ],
        "properties": {
          "input": {
            "type": "object",
            "required": [
              "type",
              "method"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "headers": {
                "type": "object",
                "additionalProperties": {
                  "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/analytics",
      "method": "GET"
    },
    "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": {
    "query": {
      "token_address": "0xb2000000000000000000008ce542828ec5f09bb7"
    }
  }
}

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

Pay 0.005 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
5000 smallest units
Buys
Fetch merchant loyalty program analytics, mint/redeem volume, and holder metrics. Loyal Spark: loyalty points, rewards & vouchers API on Base (REST + MCP, USDC via x402). Pay-only works: the paying wallet is the caller; API key optional. Scoped to the key's wallet. Docs: loyalspark.online/for-agents
Returns
application/json
The catalog’s raw entry
[
  {
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "extra": {
      "name": "USD Coin",
      "brand": "Loyal Spark",
      "version": "2",
      "website": "https://loyalspark.online",
      "provider": "Loyal Spark",
      "builderCode": "bc_wdmnog7m",
      "description": "Fetch merchant loyalty program analytics, mint/redeem volume, and holder metrics. Loyal Spark: loyalty points, rewards & vouchers API on Base (REST + MCP, USDC via x402). Pay-only works: the paying...",
      "documentation": "https://loyalspark.online/for-agents"
    },
    "payTo": "0x40a8CdD6a10EC1a8cB3dFb2834675e7a2CF4ad8b",
    "amount": "5000",
    "scheme": "exact",
    "network": "eip155:8453",
    "mimeType": "application/json",
    "resource": "https://api.loyalspark.online/x402-gateway/analytics",
    "extensions": {
      "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": "Fetch merchant loyalty program analytics, mint/redeem volume, and holder metrics. Loyal Spark: loyalty points, rewards & vouchers API on Base (REST + MCP, USDC via x402). Pay-only works: the paying wallet is the caller; API key optional. Scoped to the key's wallet. Docs: loyalspark.online/for-agents",
    "outputSchema": {
      "input": {
        "type": "http",
        "method": "GET",
        "bodyType": "query",
        "description": "HTTP GET https://api.loyalspark.online/x402-gateway/analytics — x402-gateway /analytics. Pay-only works: the paying wallet is the caller; API key optional."
      },
      "output": {
        "type": "json",
        "description": "JSON from Loyal Spark agent-api or recipient-api. See OpenAPI for response shape."
      }
    },
    "maxAmountRequired": "5000",
    "maxTimeoutSeconds": 300
  }
]

Extensions

{
  "bazaar": {
    "info": {
      "input": {
        "type": "http",
        "method": "GET",
        "headers": {},
        "queryParams": {
          "token_address": "0xb2000000000000000000008ce542828ec5f09bb7"
        }
      },
      "output": {
        "type": "json",
        "example": {
          "ok": true,
          "resource": "analytics"
        }
      },
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "token_address": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$",
            "description": "Optional: one of your programs. A program you do not own returns 404 program_not_found (not charged)."
          }
        },
        "additionalProperties": false
      }
    },
    "schema": {
      "type": "object",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "required": [
        "input"
      ],
      "properties": {
        "input": {
          "type": "object",
          "required": [
            "type",
            "method"
          ],
          "properties": {
            "type": {
              "type": "string",
              "const": "http"
            },
            "method": {
              "enum": [
                "GET",
                "HEAD",
                "DELETE"
              ],
              "type": "string"
            },
            "headers": {
              "type": "object",
              "additionalProperties": {
                "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
    }
  }
}

Provenance

Seen in the source catalog
2026-11-29 02:15Z
Last indexed by Roundhouse
2026-12-02 18:20Z
Last enriched (probe, favicon, geo)
2026-11-22 18:16Z
x402 version
2
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/analytics, 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.