{"uid":"cap_oWi5VpWsaxPf6soPpaTW9","slug":"merkle-root-calculator-668b5a74","name":"Merkle Root Calculator","description":"Merkle root over a list of leaves — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/merkle-root?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"params":{"type":"object","properties":{"hash":{"type":"string"},"leaves":{}}}}},"responseSchema":{"type":"json","example":{"ok":true,"type":"merkle-root","receipt":{"tx_hash":"0x<64hex>","amount_usd":0.003,"receipt_id":"g402-<16hex>"},"generated_at":"<iso8601>"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZL1QcoC5hPzIIS4LCVgNH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a Merkle root hash over a provided list of leaf values using a specified hash algorithm","exampleAgentPrompt":"Compute a Merkle root over these leaf hashes: ['0xabc123...', '0xdef456...', '0x789ghi...'] using SHA-256, and give me the resulting root hash.","exampleUseCases":[{"title":"Smart contract data verification","prompt":"I have a list of 8 transaction hashes I need to commit to an Ethereum smart contract — can you compute the Merkle root over them so I can use it as the commitment value?"},{"title":"Airdrop eligibility proof generation","prompt":"I'm building a token airdrop and have a list of 500 wallet addresses as leaves — compute the Merkle root so I can store it on-chain and later generate inclusion proofs."},{"title":"File integrity batch verification","prompt":"I've got a set of file content hashes and I want to collapse them into a single Merkle root I can publish as a tamper-evident checksum — can you run the merkle root calculation over this leaf list?"}],"resultDescription":"Returns a JSON object with ok=true, a type field set to 'merkle-root', the computed Merkle root hash, a generated_at ISO8601 timestamp, and a payment receipt containing a transaction hash, USD amount charged, and a unique receipt ID.","failureModes":["Empty or null leaves array returns an error","Invalid or malformed leaf data causes computation failure","Unsupported hash algorithm identifier returns an error","Payment failure via x402 protocol blocks request processing","Malformed JSON input returns a 400-class error"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call, trustless Merkle root computation without running your own hashing infrastructure — especially useful in blockchain or smart contract contexts where on-demand cryptographic computation with a verifiable receipt is needed. Prefer it over rolling your own when you need an auditable receipt tied to each computation or when integrating into an x402-compatible agentic workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:55:54.911Z","isFirstParty":false,"canonicalSlug":"merkle-root-calculator-668b5a74"}