82trust / 100

Snapshot Verify

by gov.halowerk.com in Security & trust

x402 APIPassing, checked 3 h ago

Sorts unique scalar key/value entries through canonical JSON serialization and computes SHA-256. It verifies byte-level agreement with an optional claimed digest only; it does not prove block inclusion, timestamp, signer identity, or chain consensus.

POST https://gov.halowerk.com/v1/snapshot-verify

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
98 ms typical, 98 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://gov.halowerk.com/v1/snapshot-verify" \
  -H "content-type: application/json" \
  -d '{"claimed_sha256":"0000000000000000000000000000000000000000000000000000000000000000","entries":[{"key":"proposal_id","value":"p-204"},{"key":"voting_power","value":1250},{"key":"eligible","value":true}]}'
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.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fgov.halowerk.com%2Fv1%2Fsnapshot-verify
const res = await pay("https://gov.halowerk.com/v1/snapshot-verify", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"claimed_sha256":"0000000000000000000000000000000000000000000000000000000000000000","entries":[{"key":"proposal_id","value":"p-204"},{"key":"voting_power","value":1250},{"key":"eligible","value":true}]}),
});
console.log(await res.json());

Example input

{
  "claimed_sha256": "0000000000000000000000000000000000000000000000000000000000000000",
  "entries": [
    {
      "key": "proposal_id",
      "value": "p-204"
    },
    {
      "key": "voting_power",
      "value": 1250
    },
    {
      "key": "eligible",
      "value": true
    }
  ]
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed40298 ms$0.002