Build an OTC purchase
build_otc_buyBuys amount (or "all") of the token from a sell offer (fixed-N or market-N, as list_otc names it). A market offer is bought at a venue's price signed now, its spread on it and never under its floor, so send within a minute. ETH is paid with the transaction; USDG is approved for exactly the cost.
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": {
"offer": "<offer>",
"amount": "<amount>",
"wallet": "<wallet>"
},
"name": "build_otc_buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offer | Yes | The offer, as list_otc names it: fixed-3 or market-0 | |
| amount | Yes | How much of the token to buy, as a decimal number, or "all" | |
| wallet | Yes | The address that will sign and send the transactions |