hookr_quote_swap
may change things: you confirm before it runsPreview a trade on a Hookr pool: what it would return, and whether the pool's rules let this wallet trade. Preview only, nothing is signed. Amount is in the paying currency and capped for now.
Input schema
{
"type": "object",
"properties": {
"poolId": {
"type": "string"
},
"side": {
"type": "string",
"enum": [
"buy",
"sell"
]
},
"amount": {
"type": "string"
},
"wallet": {
"type": "string",
"description": "0x wallet address"
}
},
"required": [
"poolId",
"side",
"amount",
"wallet"
]
}