check_allowance
Check if a TRC20 token is approved for a JustLend jToken market, required before supply or repay transactions (not needed for jTRX).
Instructions
Check if the underlying TRC20 token has been approved for a jToken market. Must be approved before supply() or repay() for TRC20 markets. Not needed for jTRX.
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": {
"market": "<market>"
},
"name": "check_allowance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | Yes | jToken symbol (e.g. 'jUSDT') | |
| address | No | Address to check. Default: configured wallet | |
| network | No | Network. Default: mainnet |