80trust / 100

Convert Units

by Tanod utilpeek in Documents & files

x402 APIPassing, checked 3 h ago

utilpeek (Tanod) unit conversion with exact factors: length, mass, temperature, volume, area, speed, pressure, energy, power, data size, time, fuel economy.

POST https://tanod.dev/v1/convert/units

Last 30 days

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

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://tanod.dev/v1/convert/units' \
  -H 'content-type: application/json' \
  --data-raw '{"from":"in","to":"cm","value":1}'
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%2Ftanod.dev%2Fv1%2Fconvert%2Funits
const res = await pay("https://tanod.dev/v1/convert/units", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"from\":\"in\",\"to\":\"cm\",\"value\":1}",
});
console.log(await res.json());

Example input

{
  "from": "in",
  "to": "cm",
  "value": 1
}

Example output

{
  "category": "length",
  "factor": 2.54,
  "factor_decimal": "2.54",
  "factor_exact": true,
  "formula": "result = value * factor",
  "from": "in",
  "from_name": "inch",
  "kind": "multiply",
  "result": 2.54,
  "to": "cm",
  "to_name": "centimetre",
  "value": 1
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402346 ms$0.001
7 h agoPassed402260 ms$0.001
11 h agoPassed402265 ms$0.001
15 h agoPassed402267 ms$0.001
19 h agoPassed402275 ms$0.001
22 h agoPassed4022.2 s$0.001
26 h agoPassed402274 ms$0.001
29 h agoPassed402389 ms$0.001
33 h agoPassed402272 ms$0.001
36 h agoPassed402265 ms$0.001
40 h agoPassed402270 ms$0.001
43 h agoPassed4023.5 s$0.001
2 days agoPassed402367 ms$0.001
2 days agoPassed402274 ms$0.001
2 days agoPassed402258 ms$0.001