approve_underlying
Approve the jToken contract to spend your underlying TRC20 tokens, required before supply or repay. Pass exact amount or 'max' for unlimited (user must opt in).
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 |