moolah_supply_collateral
Supply collateral into a Moolah market to enable borrowing. For TRC20 collateral, call approve_moolah_proxy first; send TRX directly.
Instructions
Supply collateral into a Moolah market to enable borrowing. For TRC20 collateral, call approve_moolah_proxy first. For TRX collateral, TRX is sent directly with no prior approval.
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": {
"marketId": "<marketId>",
"amount": "<amount>"
},
"name": "moolah_supply_collateral"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount of collateral to supply (e.g. '10000' for 10000 TRX) | |
| network | No | Network. Default: mainnet | |
| marketId | Yes | Market ID (bytes32 hex) — from get_moolah_markets |