79trust / 100

Round

by Round to minor units in Weather & location

x402 APIPassing, checked 5 min ago

Round an amount to a currency's minor units (or an explicit minorUnits) with a chosen rounding mode: half-even (banker's, default), half-up, half-down, ceil, floor or trunc. Give a currency to derive minor units automatically (USD→2, JPY→0).

POST https://money.openverbs.com/v1/round

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
588 ms typical, 610 ms slowest 5%
Last check
5 min ago
Next check
in 23 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://money.openverbs.com/v1/round" \
  -H "content-type: application/json" \
  -d '{"amount":1,"currency":"exa","minorUnits":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%2Fmoney.openverbs.com%2Fv1%2Fround
const res = await pay("https://money.openverbs.com/v1/round", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"amount":1,"currency":"exa","minorUnits":1}),
});
console.log(await res.json());

Example input

{
  "amount": 1,
  "currency": "exa",
  "minorUnits": 1
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
5 min agoPassed402556 ms$0.002
3 h agoPassed402610 ms$0.002
7 h agoPassed402579 ms$0.002
11 h agoPassed402591 ms$0.002
14 h agoPassed402596 ms$0.002
18 h agoPassed402587 ms$0.002
21 h agoPassed402587 ms$0.002
26 h agoPassed402561 ms$0.002
29 h agoPassed402599 ms$0.002
32 h agoPassed402588 ms$0.002
37 h agoPassed402881 ms$0.002