80trust / 100
Big Number Arithmetic
by Sindri in Developer tools
x402 APIPassing, checked 2 h ago
Arbitrary-precision integer arithmetic (add, subtract, multiply, power) beyond IEEE-754 float precision, using native BigInt. Operands are passed as digit strings so precision is never lost in transit. For power, the combined magnitude (base digit count x exponent) is capped at 50000 to bound response size, in addition to the per-operand digit cap and exponent cap.
POST https://ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/bigNumberArithmetic
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 126 ms typical, 152 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://ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/bigNumberArithmetic" \
-H "content-type: application/json" \
-d '{"a":"123456789123456789","b":"987654321987654321","operation":"add"}'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%2Fppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws%2FbigNumberArithmetic
const res = await pay("https://ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/bigNumberArithmetic", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"a":"123456789123456789","b":"987654321987654321","operation":"add"}),
});
console.log(await res.json());Example input
{
"a": "123456789123456789",
"b": "987654321987654321",
"operation": "add"
}Example output
{
"data": {
"params": {
"a": "123456789123456789",
"b": "987654321987654321",
"operation": "add"
},
"result": "1111111111111111110"
},
"ok": true
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 405 ms | $0.01 |
| 6 h ago | Passed | 402 | 126 ms | $0.01 |
| 9 h ago | Passed | 402 | 152 ms | $0.01 |
| 14 h ago | Passed | 402 | 119 ms | $0.01 |