hookr_prepare_swap
may change things: you confirm before it runsBuild ONE unsigned swap call through Hookr's router for your own wallet to sign and send. Checks the wallet's balance and simulates it first. Amount and slippage are capped; risky trades are refused, not overridden. Nothing is signed or sent here.
Input schema
{
"type": "object",
"properties": {
"poolId": {
"type": "string"
},
"side": {
"type": "string",
"enum": [
"buy",
"sell"
]
},
"amount": {
"type": "string"
},
"wallet": {
"type": "string",
"description": "0x wallet address"
},
"slippageBps": {
"type": "number"
},
"recipient": {
"type": "string",
"description": "0x wallet address"
}
},
"required": [
"poolId",
"side",
"amount",
"wallet"
]
}