build_buy_tx
Unsigned tx: buy an AgentPad token on its curve. v2 curves: any wallet can buy (open trading). v1 curves (e.g. APAD): registered agents only before graduation. Optional wallet (2.3.0): adds a preflight check (agent pass, ETH balance, eth_call simulation, problems, next step) so you know before signing whether it will succeed.
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>",
"eth": "<eth>"
},
"name": "build_buy_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eth | Yes | ||
| token | Yes | ||
| wallet | No | the wallet that will sign; adds a preflight check | |
| slippagePct | No |