82trust / 100

Artifact Hash

by paket.halowerk.com in Documents & files

x402 APIPassing, checked 2 h ago

Takes a file digest and answers which released package version it is. Useful for an artefact found in a container layer, a build directory or an attachment with no metadata attached. Hex and base64 input are both accepted and normalised, the digest length is checked against the declared algorithm before anything is fetched, and the response names every matching package version, since one artefact can be published under more than one coordinate.

POST https://paket.halowerk.com/v1/artifact-hash

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://paket.halowerk.com/v1/artifact-hash" \
  -H "content-type: application/json" \
  -d '{"algorithm":"SHA1","hash":"3fabe08296e930c796c19e3c516979386ba9fd59"}'
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%2Fpaket.halowerk.com%2Fv1%2Fartifact-hash
const res = await pay("https://paket.halowerk.com/v1/artifact-hash", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"algorithm":"SHA1","hash":"3fabe08296e930c796c19e3c516979386ba9fd59"}),
});
console.log(await res.json());

Example input

{
  "algorithm": "SHA1",
  "hash": "3fabe08296e930c796c19e3c516979386ba9fd59"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402108 ms$0.003
8 h agoPassed402124 ms$0.003