approve_underlying
Approve the jToken contract to spend your underlying TRC20 tokens, enabling supply and repay actions on TRC20-backed markets.
Instructions
Approve the jToken contract to spend your underlying TRC20 tokens. Required before supply() or repay() for TRC20-backed markets (not needed for jTRX). Use amount='max' for unlimited approval. Typical cost: ~23,000 energy + ~265 bandwidth.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Amount to approve, or 'max' for unlimited. Default: max | |
| market | Yes | jToken symbol (e.g. 'jUSDT') | |
| network | No | Network. Default: mainnet |