Build a transaction
build_transactionBuilds the transactions for one action, ready for from’s own wallet to sign and send in order on Robinhood Chain: buy or sell (amount, optional slippage_bps, accept_impact and market: by default the trade goes to the market that gives more, the Civic Pool through CivicRouter with a ten-minute deadline, or Semiosis’s Pons launch curve directly, where the minimum out is the only limit, validUntil is null and the to is the curve that get_contracts lists under outside; market civic keeps it on CivicRouter; a sale approves exactly its amount), stake or unstake (amount), claim_pass, borrow (amount of Semiosis to lock), repay or extend (loan_id), delegate (to, or itself when left out), vote (proposal_id, support), and the public duties sweep_pool_fees, pay_stakers and close_expired_loan (loan_id). amount may be "max". Nothing is signed or sent here. A lone transaction is first run as an eth_call from from, and one that would fail is refused with the reason; an approval is added only when the allowance falls short.
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": {
"action": "<action>",
"from": "<from>"
},
"name": "build_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Who votes with this stake (delegate); `from` itself when left out. | |
| from | Yes | The address that will sign and send the transactions. | |
| action | Yes | ||
| amount | No | In whole units as a decimal string, or "max": ETH for buy; Semiosis for sell, stake, unstake and borrow. | |
| market | No | Where to trade. auto (the default) quotes the Civic Pool and Semiosis’s Pons launch curve at the same block and uses the one that gives more; the Civic Pool keeps a near tie (within 0.5%), since its fee goes to the treasury, and a buy that would close the curve is never sent to it (the quote gives markets.pons.maxBuyEth). civic or pons uses that market; civic keeps every trade on the CivicRouter, with its deadline. (buy and sell) | |
| loan_id | No | A loan’s id as a string, such as "3" (repay, extend, close_expired_loan). | |
| support | No | How to vote (vote). | |
| proposal_id | No | A proposal’s id as get_proposals gives it (vote). | |
| slippage_bps | No | Slippage in basis points, 1 to 500 (100 = 1%). Default 100. | |
| accept_impact | No | Accept a trade that loses 15% or more of its value to price impact (buy and sell). |