{"uid":"cap_208j42eSb56ujzF0ynR74","slug":"coinopselect-merkle-proof-verification-api-e4c85d38","name":"CoinOpSelect Merkle Proof Verification API","description":"Paid on-chain token, wallet, contract and research data over x402 on Base.","url":"https://coinop.publicvm.com/api/v1/proof/merkle-verify?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string"},"method":{"type":"string"},"queryParams":{"type":"object","required":["leaf","proof","root"],"properties":{"leaf":{"type":"string","description":"Leaf preimage"},"root":{"type":"string","description":"Merkle root hex"},"proof":{"type":"string","description":"JSON proof array"}}}}},"output":{"type":"object","properties":{"query":{"type":"string"},"valid":{"type":"boolean"}}}}},"responseSchema":{"type":"json","example":{"query":"merkle-verify","valid":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_70r-I9hLljuXGrZr8h7Hr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Verifies a Merkle proof by checking whether a given leaf and proof path are valid against a specified Merkle root","exampleAgentPrompt":"Can you verify this Merkle proof for me? The leaf preimage is '0xabc123', the Merkle root is '0xdeadbeef...', and the proof array is '[\"0x111...\",\"0x222...\"]' — I need to know if this inclusion proof is valid.","exampleUseCases":[{"title":"Verify airdrop eligibility inclusion","prompt":"I have a leaf value '0xuser123', a Merkle root '0xROOT456' and a proof path '[\"0xA1\",\"0xB2\",\"0xC3\"]' from an airdrop claim — can you check if this Merkle proof is valid so I know if I'm actually on the whitelist?"},{"title":"On-chain data integrity audit","prompt":"We stored a data hash as a leaf '0xdatahash789' in a Merkle tree with root '0xROOT999', and here's the proof '[\"0xP1\",\"0xP2\"]' — please verify this proof to confirm the data hasn't been tampered with."},{"title":"Smart contract proof validation before submission","prompt":"Before I submit a Merkle proof to the smart contract, can you pre-validate it? Leaf is '0xleaf42', root is '0xroot77', and the JSON proof array is '[\"0xside1\",\"0xside2\",\"0xside3\"]'."}],"resultDescription":"Returns a JSON object with a 'query' field (string, value 'merkle-verify') and a 'valid' boolean indicating whether the supplied leaf, proof path, and Merkle root form a cryptographically valid inclusion proof.","failureModes":["Invalid or malformed proof JSON array causes validation failure or error","Incorrect leaf preimage (wrong encoding or hash) results in valid=false even if proof structure is correct","Root hex mismatch returns valid=false without further detail","Missing required query parameters (leaf, proof, or root) may return a 4xx error","Payment failure via x402 protocol blocks the request before verification occurs","Non-hex or improperly formatted root returns an error response"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call cryptographic Merkle proof inclusion check without deploying your own verifier infrastructure. It is especially useful for AI agents operating on Base/blockchain workflows that need to verify whitelist membership, airdrop eligibility, or data integrity proofs before taking further on-chain actions. Prefer this over rolling your own verifier when cost-per-call economics ($0.01 USDC) are acceptable and you want a hosted, stateless verification service.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:45:43.938Z","isFirstParty":false,"canonicalSlug":"coinopselect-merkle-proof-verification-api-e4c85d38"}