Build trade
build_tradeBuild unsigned transactions to buy a stock token on Robinhood Chain with ETH (eth, or usd worth of ETH) or sell pct percent of the wallet’s holding for ETH. token is a ticker (TSLA) or the token address. A buy needs the ETH, plus gas, already in wallet; if it is short, fund it with fund_agent first. The calls expire at valid_until: sign and send before then, or build the trade again. Returns calls for the wallet owner to sign and send in order on Robinhood Chain (chain ID 4663). No keyfo tool signs. The answer also has sign_url: a keyfo page where the user checks the transaction and signs it in their own wallet. It stays open for 15 minutes and gets a new quote itself when the price is out of date. Show that link to the user, and never ask them to paste the transaction data anywhere.
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>",
"side": "<side>",
"wallet": "<wallet>"
},
"name": "build_trade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eth | No | ETH to spend on a buy, up to 10. | |
| pct | No | Share of the holding to sell, above 0 and up to 100. | |
| usd | No | Dollars of ETH to spend, at the current ETH price. | |
| side | Yes | buy or sell. | |
| token | Yes | Ticker, like TSLA, or the token address. | |
| wallet | Yes | The wallet that signs and sends. The route is quoted for it. | |
| slippage_pct | No | Price tolerance in percent: 1 by default, from 0.1 to 10. |