75trust / 100

Text Sha256 Digest Execute

by tradepilotusa.com in Other

x402 APIPassing, checked 8 min ago

Calculate a SHA-256 digest and UTF-8 byte length of supplied text without normalization. Useful for comparing exact text artifacts. Does not prove authorship, authenticity or safe content; do not submit passwords or secrets.

POST https://www.tradepilotusa.com/api/agent-commerce/v1/services/text_sha256_digest/execute

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
731 ms typical, 1.3 s slowest 5%
Last check
8 min ago
Next check
in 20 min

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://www.tradepilotusa.com/api/agent-commerce/v1/services/text_sha256_digest/execute' \
  -H 'content-type: application/json' \
  --data-raw '{"text":"abc"}'
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%2Fwww.tradepilotusa.com%2Fapi%2Fagent-commerce%2Fv1%2Fservices%2Ftext_sha256_digest%2Fexecute
const res = await pay("https://www.tradepilotusa.com/api/agent-commerce/v1/services/text_sha256_digest/execute", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"text\":\"abc\"}",
});
console.log(await res.json());

Example input

{
  "text": "abc"
}

Example output

{
  "provenance": {
    "execution": "deterministic_local",
    "model_used": false,
    "network_request_performed": false
  },
  "request_id": "example_text_sha256_digest",
  "result": {
    "algorithm": "SHA-256",
    "byte_length": 3,
    "digest": "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad",
    "encoding": "UTF-8",
    "normalization": "none; line endings and Unicode code points remain significant"
  },
  "utility": "text_sha256_digest"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
8 min agoPassed402693 ms$0.01
4 h agoPassed4021.3 s$0.01
8 h agoPassed402739 ms$0.01
12 h agoPassed402960 ms$0.01
16 h agoPassed402731 ms$0.01
19 h agoPassed402706 ms$0.01
23 h agoPassed402685 ms$0.01
26 h agoPassed402993 ms$0.01
30 h agoPassed402686 ms$0.01
33 h agoPassed402960 ms$0.01
37 h agoPassed4021.3 s$0.01
40 h agoPassed402644 ms$0.01
44 h agoPassed402632 ms$0.01
2 days agoPassed402939 ms$0.01
2 days agoPassed402684 ms$0.01