build_sell_tx
Unsigned tx: sell AgentPad tokens back to the curve (whole-token amount). v1 or v2. Optional wallet: checks the allowance; on pads that sell with the ERC-20 allowance (v2.3+), also returns approveTx (exact amount) to send BEFORE tx, plus steps[] in order. tx is always the sell.
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": {
"token": "<token>",
"amount": "<amount>"
},
"name": "build_sell_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | ||
| amount | Yes | ||
| wallet | No | the selling wallet (recommended): checks its allowance to the pad | |
| slippagePct | No |