78trust / 100

Merkle Verify

by EVM & Solana Utility Tools in Security & trust

x402 APIPassing, checked 46 min ago

Keccak Merkle proof verifier — validate inclusion plus exact leaf index and count proof shape for the Atlas sorted-pair tree profile.

POST https://chain-tools.use.x402atlas.com/merkle/verify

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
438 ms typical, 507 ms slowest 5%
Last check
46 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://chain-tools.use.x402atlas.com/merkle/verify" \
  -H "content-type: application/json" \
  -d '{"index":2,"leaf":"0x67616d6d61","leaf_count":3,"proof":[{"hash":"0xbfa0350c48ccd55fb3a8315a6d6bfc41877772eaebfcba73cb195984df5b3d32"}],"root":"0x40a0fa2d0ce898ef138c3403645be77705df9d485ecc137b02b35eb9fdeaaf94"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fchain-tools.use.x402atlas.com%2Fmerkle%2Fverify
const res = await pay("https://chain-tools.use.x402atlas.com/merkle/verify", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"index":2,"leaf":"0x67616d6d61","leaf_count":3,"proof":[{"hash":"0xbfa0350c48ccd55fb3a8315a6d6bfc41877772eaebfcba73cb195984df5b3d32"}],"root":"0x40a0fa2d0ce898ef138c3403645be77705df9d485ecc137b02b35eb9fdeaaf94"}),
});
console.log(await res.json());

Example input

{
  "index": 2,
  "leaf": "0x67616d6d61",
  "leaf_count": 3,
  "proof": [
    {
      "hash": "0xbfa0350c48ccd55fb3a8315a6d6bfc41877772eaebfcba73cb195984df5b3d32"
    }
  ],
  "root": "0x40a0fa2d0ce898ef138c3403645be77705df9d485ecc137b02b35eb9fdeaaf94"
}

Example output

{
  "algorithm_version": "keccak256-sorted-pairs-v1",
  "index": 2,
  "leaf": "0x67616d6d61",
  "leaf_count": 3,
  "leaf_hash": "0xe51a809d0bd7c39f11aa7f9ff0ba85099028c7d56f42313f3bb5495a7b967146",
  "operation": "merkle-verify",
  "root": "0x40a0fa2d0ce898ef138c3403645be77705df9d485ecc137b02b35eb9fdeaaf94",
  "valid": true,
  "warnings": []
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
46 min agoPassed402453 ms$0.005
5 h agoPassed402533 ms$0.005
8 h agoPassed402438 ms$0.005
12 h agoPassed402507 ms$0.005
16 h agoPassed402433 ms$0.005
19 h agoPassed402361 ms$0.005
23 h agoPassed402399 ms$0.005
26 h agoPassed402466 ms$0.005
30 h agoPassed402353 ms$0.005
35 h agoPassed402463 ms$0.005