hookr_quote · Quote a trade
read-onlyQuotes a trade on a Hookr pool through Hookr's quoter, with every Hook Block's take, the burn and the LP fee. Pass payer to quote as that wallet (its Wallet Cap and the pool's rules apply).
Input schema
{
"type": "object",
"properties": {
"poolId": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{64}$",
"description": "The pool's 32-byte Uniswap v4 PoolId, 0x and 64 hex characters."
},
"side": {
"type": "string",
"enum": [
"buy",
"sell"
],
"description": "buy pays the pool's quote currency (ETH, HOOKR, …) for the token; sell pays the token for the quote currency."
},
"amount": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,30})(?:\\.[0-9]{1,36})?$",
"description": "How much the trade pays in, in the paying currency's own units as a decimal string, e.g. \"0.05\"."
},
"payer": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "The wallet that would pay. Needed on an agents-only pool, which refuses a quote without it."
}
},
"required": [
"poolId",
"side",
"amount"
],
"additionalProperties": false
}