← Back to marketplace

Loyal Spark - Loyalty Rewards That Grow

external

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

by Loyalspark50 endpoints100% uptime40ms avg

Price

from $0.0010

up to $0.0500 per request

Network

base

Category

ai

On-chain txns

628

Uptime

100%

Avg latency

40ms

Checks

79

Status

Healthy

Base URL

https://api.loyalspark.online

Endpoints (50)

Discovered from on-chain x402 payment activity. Prices shown are per-call in USDC.

POST/x402-gateway/accept-offer
base$0.0100
POST/x402-gateway/activate-program
base$0.0100
GET/x402-gateway/analytics
base$0.0050
GET/x402-gateway/balance
base$0.0010
POST/x402-gateway/cancel-offer
base$0.0050
GET/x402-gateway/customers
base$0.0020
POST/x402-gateway/earn
base$0.0100
POST/x402-gateway/mcp-tools/activate_loyalty_program
base$0.0100
POST/x402-gateway/mcp-tools/cancel_stale_offers
base$0.0100
POST/x402-gateway/mcp-tools/check_voucher_status
base$0.0100
POST/x402-gateway/mcp-tools/create_gift_certificate
base$0.0100
POST/x402-gateway/mcp-tools/create_loyalty_program
base$0.0100
POST/x402-gateway/mcp-tools/create_personalized_offer
base$0.0100
POST/x402-gateway/mcp-tools/create_reward
base$0.0100
POST/x402-gateway/mcp-tools/delete_report
base$0.0100
POST/x402-gateway/mcp-tools/earn_points
base$0.0100
POST/x402-gateway/mcp-tools/export_customers
base$0.0100
POST/x402-gateway/mcp-tools/generate_program_defaults
base$0.0010
POST/x402-gateway/mcp-tools/get_my_profile
base$0.0100
POST/x402-gateway/mcp-tools/get_platform_info
base$0.0100
POST/x402-gateway/mcp-tools/get_platform_stats
base$0.0100
POST/x402-gateway/mcp-tools/get_program_analytics
base$0.0100
POST/x402-gateway/mcp-tools/get_program_workflow_status
base$0.0010
POST/x402-gateway/mcp-tools/get_token_balance
base$0.0100
POST/x402-gateway/mcp-tools/list_gift_certificates
base$0.0100
POST/x402-gateway/mcp-tools/list_loyalty_programs
base$0.0100
POST/x402-gateway/mcp-tools/list_marketplace_offers
base$0.0100
POST/x402-gateway/mcp-tools/list_my_reports
base$0.0100
POST/x402-gateway/mcp-tools/list_rewards
base$0.0100
POST/x402-gateway/mcp-tools/mark_gift_certificate_minted
base$0.0100
POST/x402-gateway/mcp-tools/mint_loyalty_tokens
base$0.0100
POST/x402-gateway/mcp-tools/redeem_reward
base$0.0100
POST/x402-gateway/mcp-tools/register_loyalty_program
base$0.0100
POST/x402-gateway/mcp-tools/revoke_gift_certificate
base$0.0100
POST/x402-gateway/mcp-tools/send_report
base$0.0100
POST/x402-gateway/mcp-tools/transfer_loyalty_tokens
base$0.0100
POST/x402-gateway/mcp-tools/update_program_config
base$0.0100
POST/x402-gateway/mcp-tools/update_program_status
base$0.0100
POST/x402-gateway/mcp-tools/update_report_status
base$0.0100
POST/x402-gateway/mcp-tools/update_reward_status
base$0.0100
POST/x402-gateway/mcp-tools/use_voucher
base$0.0100
POST/x402-gateway/merchant-profile
base$0.0050
POST/x402-gateway/merchant-profile
base$0.0050
POST/x402-gateway/merchant-profile
base$0.0050
POST/x402-gateway/mint
base$0.0100
GET/x402-gateway/offers
base$0.0100
GET/x402-gateway/offers
base$0.0100
POST/x402-gateway/program-status
base$0.0050
GET/x402-gateway/programs
base$0.0500
GET/x402-gateway/programs
base$0.0500

Payment

Protocolx402 (direct payment, USDC)
Networkbase

How to call

Via APIHub (recommended)No wallet · pay with credits · gasless
# one-time setup
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call it
npx @apihubio/cli call https://api.loyalspark.online \
  -X POST \
  -d '{ /* check provider docs for input */ }'

# or save it to Claude/Cursor/Codex
npx @apihubio/cli install
npx @apihubio/cli add https://api.loyalspark.online
APIHub pays the provider on your behalf and debits your credit balance for the exact amount. No wallet setup, no gas, no per-call signing.
Via direct x402 (advanced)Bring your own wallet
import { wrapFetchWithPayment } from "@x402/fetch";
import { createWalletClient, http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { base } from "viem/chains";

const account = privateKeyToAccount("0xYOUR_PRIVATE_KEY");
const client = createWalletClient({ account, chain: base, transport: http() });
const x402Fetch = wrapFetchWithPayment(client);

const res = await x402Fetch("https://api.loyalspark.online", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ /* check provider docs for input */ }),
});
const data = await res.json();
Requires USDC on Base and gas on each call. The @x402/fetch client signs EIP-3009 transferWithAuthorization for each 402 response and retries.

This is an external service not operated by APIHub. Listing data is sourced from public on-chain records and third-party indexes. Payment goes directly to the service provider via the x402 protocol. APIHub does not guarantee availability, accuracy, or quality of external services.