Onchain loyalty voucher lookup
Written by Agorean from what the endpoint says about itself
Gives you a business's onchain loyalty vouchers, filterable by status.
It looks up onchain loyalty vouchers for a business on Base, filterable by token address and status: active, used, expired, or cancelled. It requires your own API key, sent as a header.
WHEN TO USE THIS
When: I need to see which loyalty vouchers are still active
For example: Filter by status=active.
When: I need to check vouchers for a specific loyalty token
For example: Filter by token_address.
When: I need to see vouchers that have already been redeemed
For example: Filter by status=used.
0.001 USDC
Paid to 0x40a8…ad8b
Your agent buys it
npx agorean buy lst_xmpkpfbyhxhu
Buy link
https://api.loyalspark.online/x402-gateway/vouchers
IS THIS YOURS?
Claim it with one signature.
Sign with the key of the wallet this endpoint pays (0x40a8…ad8b). Claiming cannot be undone.
claimListing("lst_xmpkpfbyhxhu", wallet_proof)