{"uid":"cap_VZYaLNGIn6wfm1wT-O_0K","slug":"coinopselect-merkle-leaf-lookup-api-24920dcf","name":"CoinOpSelect Merkle Leaf Lookup API","description":"Paid on-chain token, wallet, contract and research data over x402 on Base.","url":"https://coinop.publicvm.com/api/v1/merkle/leaf?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":["index","account","amount"],"properties":{"index":{"type":"string","description":"Leaf index integer"},"amount":{"type":"string","description":"Amount integer string"},"account":{"type":"string","description":"Account string"}}}}},"output":{"type":"object","properties":{"leaf":{"type":"string"},"query":{"type":"string"}}}}},"responseSchema":{"type":"json","example":{"leaf":"hex","query":"merkle-leaf"}},"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_Z-IzFdrNHI7xGLbSJsV7k","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":"Computes or retrieves a Merkle leaf hash for a given account, index, and amount, used in on-chain Merkle proof workflows on Base.","exampleAgentPrompt":"Look up the Merkle leaf hash for account 0xAbc123... at index 5 with an amount of 1000 — I need it to generate a Merkle proof for a token claim on Base.","exampleUseCases":[{"title":"Airdrop claim eligibility check","prompt":"Can you fetch the Merkle leaf hash for wallet 0xDeF456... at leaf index 12 with amount 500 so I can verify this address is included in the airdrop distributor on Base?"},{"title":"Whitelist Merkle proof generation","prompt":"I need to generate a Merkle proof for a whitelist contract — can you retrieve the Merkle leaf for account 0x789Abc... at index 3 with amount 250?"},{"title":"On-chain token distribution verification","prompt":"Fetch the Merkle leaf for account 0x111Bbb... at index 0 with amount 10000 so I can verify the leaf hash matches what's stored in the distributor contract on Base."}],"resultDescription":"Returns a JSON object containing the Merkle leaf as a hex string and a query identifier string. The leaf can be used directly as input to Merkle proof generation or on-chain contract verification calls.","failureModes":["Missing required parameters (index, account, or amount) returns a 400 error","Invalid account address format causes a query failure","Leaf index out of range returns an empty or null leaf","Payment not completed via x402 results in a 402 Payment Required response","Network or RPC issues on Base may cause lookup failures"],"whenToPreferThis":"Use this endpoint when you need to compute or retrieve a Merkle leaf hash for a specific account and amount at a given index, particularly in the context of Merkle distributor contracts, airdrop claims, or whitelist proofs on the Base blockchain. Prefer this over generic Ethereum RPC calls when you need a pre-computed leaf hash without implementing the hashing logic yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:43:18.241Z","isFirstParty":false,"canonicalSlug":"coinopselect-merkle-leaf-lookup-api-24920dcf"}