chain_merkle_verify
Merkle proof verifier (airdrop / allowlist claims) — Check whether a Merkle proof proves a claim against a root, the same way OpenZeppelin MerkleProof.verify does on-chain (sorted-pair keccak256). root= and proof= (comma-separated 32-byte hashes) required, plus either values= (comma list matching types=, default address,uint256, e.g. wallet,amount in wei) or leaf= (32-byte hash). encoding=standard (default: OpenZeppelin StandardMerkleTree double-hash of abi.encode) or packed (keccak256(abi.encodePacked(values)), used by older Uniswap-style airdrops, e.g. types=uint256,address,uint256 for index,account,amount). Returns valid true/false, the computed root and the leaf. Offline. Price: $0.002 USDC (Base, via x402).
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": {
"root": "<root>",
"proof": "<proof>",
"values": "<values>"
},
"name": "chain_merkle_verify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | 0xd4dee0beab2d53f2cc83e567171bd2820e49898130a22622b10ead383e90bd77 | |
| proof | Yes | 0xeb02c421cfa48976e66dfb29120745909ea3a0f843456c263cf8f1253483e283 | |
| values | Yes | 0x2222222222222222222222222222222222222222,2500000000000000000 |