thryx_buy
Buy any ERC-20 token on Base with ETH. Gas costs are covered by paymaster, and slippage protection ensures a safe trade, requiring only your ETH balance.
Instructions
Buy a token with ETH. Gasless via paymaster. Slippage protected. Requires THRYX_API_KEY and enough ETH in your wallet to cover the trade value (gas is sponsored separately).
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": "thryx_buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Token contract address — 0x-prefixed 40-char hex. | |
| amount | Yes | ETH amount as a decimal string, e.g. "0.0003". | |
| comment | No | Optional public comment to attach to the trade (max 280 chars). |