81trust / 100
Json Boolean Coerce
by JSON Boolean Coerce in Onchain & crypto
x402 APIPassing, checked 5 h ago
JSON Boolean Coerce: coerces explicit boolean tokens while reporting rejected values using only bounded caller-supplied values. Call when you need a bounded json boolean coerce result before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for JSON Boolean Coerce as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base…
POST https://api.delx.ai/api/v1/x402/json-boolean-coerce
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 5 ms typical, 5 ms slowest 5%
- Last check
- 5 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.delx.ai/api/v1/x402/json-boolean-coerce" \
-H "content-type: application/json" \
-d '{"values":["true","false","1","bad"]}'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%2Fapi.delx.ai%2Fapi%2Fv1%2Fx402%2Fjson-boolean-coerce
const res = await pay("https://api.delx.ai/api/v1/x402/json-boolean-coerce", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"values":["true","false","1","bad"]}),
});
console.log(await res.json());Example input
{
"values": [
"true",
"false",
"1",
"bad"
]
}Example output
{
"evidence": {
"external_calls": 0,
"input_sha256": "b0d8a970d8b95be459de90bd542fe2e952d9487c3b0d629f128cb547e47f6fa2",
"retained": false
},
"operation": "data_batch:json_boolean_coerce",
"result": {
"rejected": [
"bad"
],
"values": [
true,
false,
true
]
},
"schema": "delx/util-json-boolean-coerce/v1",
"status": "advisory"
}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 |
|---|---|---|---|---|
| 5 h ago | Passed | 402 | 5 ms | $0.001 |