redeem_reward
Redeem loyalty rewards by verifying on-chain token transfers. Submit transaction details to generate customer vouchers for the Loyal Spark Loyalty Protocol.
Instructions
Redeem a reward by providing a verified token transfer transaction hash. Creates a voucher for the customer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reward_id | Yes | UUID of the reward to redeem | |
| customer_address | Yes | Wallet address of the customer who transferred tokens | |
| transaction_hash | Yes | On-chain tx hash of the token transfer from customer to merchant |