uniswap
v4-core
hooks
permission-bits
bitmap-decode
callback-declaration
hooklist
dynamic-fee
compliance-evidence
mcp:reconcile_v4_hook_permissions

V4 Hook Permission Reconciler

Decodes a Uniswap v4 hook address's 14 permission bits against a caller-declared callback set, replicates v4-core's isValidHookAddress rule (including the dynamic-fee escape), and reconciles a hooklist dynamicFee declaration with the pool fee.

Tool URL: https://ainumbers.co/chaingraph/art-708-v4-hook-permission-reconciler.html AP2/Policy Mandate export: yes

post/v1/tools/reconcile_v4_hook_permissions

Request

  • Base URL: https://ainumbers.co
  • URL: https://ainumbers.co/v1/tools/reconcile_v4_hook_permissions
  • Auth: none declared

Request body

hook_addressstring required

0x-prefixed 40-hex-digit Uniswap v4 hook address; checksum not required, normalised to lowercase. Its low 14 bits are the permission bitmap.

pool_feeinteger

Optional uint24 pool fee; the fee is dynamic iff pool_fee & 0x800000 (8388608).

declaration_sourcestring

Optional free text naming where the declaration comes from, e.g. a registry entry or notice item; emitted unchanged in the output.

Response

Successful tool execution result

hook_addressstring
decoded_bitsstring
mismatchesobject[]
mismatch_countinteger
valid_hook_addressboolean nullable
failing_rulestring nullable
pool_feeinteger nullable
v4_core_commitstring
declaration_sourcestring nullable
dynamic_fee_declarationobject nullable
assumptionsstring[]
errorstring
detailstring

Changes

No recorded changes to this operation across all 1 revision of this API.