estimate_moolah_energy
Estimate the energy, bandwidth, and TRX cost for JustLend V2 (Moolah) write operations before executing them. Supports vault deposit, withdraw, borrow, repay, liquidate, and more.
Instructions
Estimate energy, bandwidth, and TRX cost for a JustLend V2 (Moolah) write operation BEFORE executing it. Returns historical typical values (on-chain simulation for Moolah's tuple-args ops is not yet wired). Set isTRX=true when the underlying / loan / collateral token is native TRX (TrxProviderProxy route). Covers: vault_deposit, vault_withdraw, vault_redeem, approve_vault, supply_collateral, withdraw_collateral, borrow, repay, approve_proxy, liquidate, approve_liquidator.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isTRX | No | Whether the route uses native TRX (via TrxProviderProxy). Default: false | |
| address | No | Owner address for resource-sufficiency check. Default: configured wallet | |
| network | No | Network. Default: mainnet | |
| operation | Yes | Moolah operation to estimate |