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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"reward_id": "<reward_id>",
"customer_address": "<customer_address>",
"transaction_hash": "<transaction_hash>"
},
"name": "redeem_reward"
}
}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 |