Prepare: Open a loop
gage_prepare_leveragePrepare a leveraged loop: the loan buys more of the pledged token in one transaction. USDG only. Refused above maxCostBps. Returns the next unsigned transaction and a review link; never signs.
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": {
"wallet": "<wallet>",
"token": "<token>",
"own": "<own>",
"multiple": "<multiple>",
"term": "<term>",
"maxCostBps": "<maxCostBps>"
},
"name": "gage_prepare_leverage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| own | Yes | The tokens you put in, raw units | |
| term | Yes | Loan term in seconds, one of the terms gage_capabilities lists | |
| token | Yes | ||
| wallet | Yes | ||
| multiple | Yes | Leverage, 1.1 to 3 with at most two decimals (2 = twice the pledge held for the loan) | |
| lendAsset | No | USDG only: leverage lends USDG (a loop in a lend asset is refused; a lend asset's puts open with put_open) | |
| maxCostBps | Yes | Highest loan cost you accept, bps of the amount borrowed; the loop is refused above it |