loyalteez_get_user_balance
Retrieve a user's current LTZ balance and recent transactions by email. Use it to display rewards or confirm distribution.
Instructions
Get a user's current LTZ balance and recent transaction history. Use this to display balance in your app or verify rewards were distributed.
Implementation Note: LTZ balances are stored on-chain. If the API endpoint is unavailable:
Get the user's wallet address via
loyalteez_resolve_useror SDKgetUserWallet()Query the LTZ token contract (
0x5242b6DB88A72752ac5a54cFe6A7DB8244d743c9) usingbalanceOf(address)on Soneium Mainnet (Chain ID: 1868)
See also: loyalteez://docs/api/rest-api, loyalteez://contracts/ltz-token
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brandId | No | Your brand wallet address. If not provided, uses LOYALTEEZ_BRAND_ID environment variable. | |
| userEmail | Yes | User's email address | |
| historyLimit | No | Max transactions to return (default: 10, max: 50) | |
| includeHistory | No | Include recent transactions (default: false) |