insumer_check_discount
Calculate discount tier and percentage for a wallet at a merchant by verifying on-chain token balances across EVM, Solana, and XRPL. Returns per-token discount without exposing exact balances.
Instructions
Calculate discount for a wallet at a merchant. Checks on-chain balances and returns tier and discount percentage per token — never raw balance amounts. Free — does not consume credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| merchant | Yes | Merchant ID | |
| wallet | No | EVM wallet address (0x...) | |
| solanaWallet | No | Solana wallet address (base58) | |
| xrplWallet | No | XRPL wallet address (r-address) |