approve_underlying
Authorize a jToken contract to spend your TRC20 tokens for lending or borrowing on JustLend. Provide the exact amount or 'max' for unlimited approval (user opt-in required).
Instructions
Approve the jToken contract to spend your underlying TRC20 tokens. Required before supply() or repay() for TRC20-backed markets (not needed for jTRX). Pass the EXACT amount you intend to use (recommended). Pass amount='max' for unlimited approval ONLY when the user explicitly opts in — it lets the jToken contract spend the user's entire balance, present and future, until revoked. Typical cost: ~23,000 energy + ~265 bandwidth.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Exact amount to approve (e.g. '100'), or 'max' for unlimited (NOT recommended; user must opt in). | |
| market | Yes | jToken symbol (e.g. 'jUSDT') | |
| network | No | Network. Default: mainnet |