Prepare: Withdraw from Earn
gage_prepare_earn_redeemPrepare withdrawing from a partner vault, everything it can pay when shares is omitted. 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>",
"vault": "<vault>"
},
"name": "gage_prepare_earn_redeem"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vault | Yes | ||
| shares | No | Shares to redeem, raw (18 decimals); all when omitted, less what a vault of an asset with more than 6 decimals cannot pay after a loss (a millionth of the asset at most) | |
| wallet | Yes | ||
| maxSlippageBps | No | Most the conversion may move against you, in bps; 50 when omitted |