Tabular Contract Audit
by Tabular Contract Audit in Onchain & crypto
Audit your own delimited data against a contract you declare, and get one pass/fail plus the exact row and clause of every breach. Checks types, required values, enums, numeric bounds, lengths, patterns, uniqueness, composite primary keys, null-rate ceilings, header drift and encoding damage in one pass. A pass means the audit was complete and nothing broke, so a file beyond the bounds reports incomplete rather than passing. Nothing is fetched: you supply the rows.
https://api.zfinia.com/x402/v1/tabular-contract-audit- Price
- $0.12
- per call in USDC
- Uptime
- 100%
- last 30 days
- Response time
- 539 ms
- 698 ms slowest 5%
- Last check
- Passed
- 5 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://api.zfinia.com/x402/v1/tabular-contract-audit
Each call costs $0.12 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://api.zfinia.com/x402/v1/tabular-contract-audit
content-type: application/json
{
"contract": {
"columns": [
{
"name": "order_id",
"required": true,
"type": "integer",
"unique": true
},
{
"enum": [
"USD",
"EUR"
],
"name": "currency",
"required": true,
"type": "string"
},
{
"min": 0,
"name": "amount",
"required": true,
"type": "number"
},
{
"name": "placed_at",
"required": true,
"type": "date"
},
{
"max_null_rate": 0.1,
"name": "email",
"type": "string"
}
],
"primary_key": [
"order_id"
]
},
"csv": "order_id,currency,amount,placed_at,email\n1001,USD,42.50,2026-09-30,[email protected]\n1002,EUR,-3,2026-09-31,\n1001,GBP,19.99,2026-10-01,[email protected]\n"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
contract | object | Yes | |
csv | string | Yes | |
delimiter | string | No |
Example response
The provider's example. We can't check it without paying.
Example response, 138 lines
{
"assumptions": [
"Values are compared as the text supplied. No locale, thousands separator or ambiguous date order is inferred, so normalise before auditing if your source uses them.",
"An empty field is treated as absent, because a literal empty string cannot be distinguished from a missing value in delimited text."
],
"column_count": 5,
"column_profiles": [
{
"declared_type": "integer",
"distinct_count": 2,
"inferred_type": "integer",
"inferred_type_counts": {
"integer": 3
},
"max_length": 4,
"max_numeric": 1002,
"min_length": 4,
"min_numeric": 1001,
"name": "order_id",
"null_count": 0,
"null_rate": 0,
"present": true
},
{
"declared_type": "string",
"distinct_count": 3,
"inferred_type": "string",
"inferred_type_counts": {
"string": 3
},
"max_length": 3,
"max_numeric": null,
"min_length": 3,
"min_numeric": null,
"name": "currency",
"null_count": 0,
"null_rate": 0,
"present": true
},
{
"declared_type": "number",
"distinct_count": 3,
"inferred_type": "number",
"inferred_type_counts": {
"integer": 1,
"number": 2
},
"max_length": 5,
"max_numeric": 42.5,
"min_length": 2,
"min_numeric": -3,
"name": "amount",
"null_count": 0,
"null_rate": 0,
"present": true
}
],
"complete": true,
"encoding": {
"byte_order_mark": false,
"crlf_line_endings": false,
"mixed_line_endings": false,
"replacement_characters": 0
},
"header": {
"declared": [
"order_id",
"currency",
"amount"
],
"duplicated": [],
"missing": [],
"observed": [
"order_id",
"currency",
"amount"
],
"order_changed": false,
"unexpected": []
},
"limitations": [
"Structural and value-level conformance against the supplied contract only. Business meaning, referential integrity against other datasets, and whether the contract itself is correct are not assessed.",
"Row, column, cell and violation bounds are applied before and during the audit. Anything left unexamined is named in not_examined, and passed is false whenever complete is false.",
"Patterns use a documented non-backtracking subset with no groups or alternation, so a native regular expression relying on those will be refused rather than approximated."
],
"limits": {
"maxCellLength": 4096,
"maxColumns": 64,
"maxCsvBytes": 262144,
"maxEnumValues": 100,
"maxRows": 5000,
"maxSafeInteger": 9007199254740991,
"maxViolations": 500,
"patternAtoms": 64,
"patternValueLength": 256
},
"not_examined": [],
"observed_at": "2026-10-02T00:00:00.000Z",
"passed": false,
"request_id": "example-request",
"row_count": 3,
"service_id": "tabular_contract_audit",
"service_version": "1.0.0",
"supplied_row_count": 3,
"violation_count": 6,
"violations": [
{
"code": "BELOW_MINIMUM",
"column": "amount",
"detail": "Row 3: amount is -3, below the declared minimum 0.",
"row": 3,
"value": "-3"
},
{
"code": "TYPE_MISMATCH",
"column": "placed_at",
"detail": "Row 3: placed_at is declared date but \"2026-09-31\" reads as string.",
"row": 3,
"value": "2026-09-31"
},
{
"code": "DUPLICATE_VALUE",
"column": "order_id",
"detail": "Row 4: order_id repeats \"1001\", first seen at row 2.",
"row": 4,
"value": "1001"
}
],
"violations_by_code": {
"BELOW_MINIMUM": 1,
"DUPLICATE_PRIMARY_KEY": 1,
"DUPLICATE_VALUE": 1,
"NOT_IN_ENUM": 1,
"NULL_RATE_EXCEEDED": 1,
"TYPE_MISMATCH": 1
},
"warnings": []
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.12.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://api.zfinia.com/x402/v1/tabular-contract-audit' \
-H 'content-type: application/json' \
--data-raw '{"contract":{"columns":[{"name":"order_id","required":true,"type":"integer","unique":true},{"enum":["USD","EUR"],"name":"currency","required":true,"type":"string"},{"min":0,"name":"amount","required":true,"type":"number"},{"name":"placed_at","required":true,"type":"date"},{"max_null_rate":0.1,"name":"email","type":"string"}],"primary_key":["order_id"]},"csv":"order_id,currency,amount,placed_at,email\n1001,USD,42.50,2026-09-30,[email protected]\n1002,EUR,-3,2026-09-31,\n1001,GBP,19.99,2026-10-01,[email protected]\n"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://api.zfinia.com/x402/v1/tabular-contract-audit' \
-H 'content-type: application/json' \
--data-raw '{"contract":{"columns":[{"name":"order_id","required":true,"type":"integer","unique":true},{"enum":["USD","EUR"],"name":"currency","required":true,"type":"string"},{"min":0,"name":"amount","required":true,"type":"number"},{"name":"placed_at","required":true,"type":"date"},{"max_null_rate":0.1,"name":"email","type":"string"}],"primary_key":["order_id"]},"csv":"order_id,currency,amount,placed_at,email\n1001,USD,42.50,2026-09-30,[email protected]\n1002,EUR,-3,2026-09-31,\n1001,GBP,19.99,2026-10-01,[email protected]\n"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.12 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.12" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.12 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.zfinia.com%2Fx402%2Fv1%2Ftabular-contract-audit&method=POST
const res = await pay("https://api.zfinia.com/x402/v1/tabular-contract-audit", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"contract": {
"columns": [
{
"name": "order_id",
"required": true,
"type": "integer",
"unique": true
},
{
"enum": [
"USD",
"EUR"
],
"name": "currency",
"required": true,
"type": "string"
},
{
"min": 0,
"name": "amount",
"required": true,
"type": "number"
},
{
"name": "placed_at",
"required": true,
"type": "date"
},
{
"max_null_rate": 0.1,
"name": "email",
"type": "string"
}
],
"primary_key": [
"order_id"
]
},
"csv": "order_id,currency,amount,placed_at,email\n1001,USD,42.50,2026-09-30,[email protected]\n1002,EUR,-3,2026-09-31,\n1001,GBP,19.99,2026-10-01,[email protected]\n"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.12 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.12"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://api.zfinia.com/x402/v1/tabular-contract-audit",
json={
"contract": {
"columns": [
{
"name": "order_id",
"required": True,
"type": "integer",
"unique": True,
},
{
"enum": [
"USD",
"EUR",
],
"name": "currency",
"required": True,
"type": "string",
},
{
"min": 0,
"name": "amount",
"required": True,
"type": "number",
},
{
"name": "placed_at",
"required": True,
"type": "date",
},
{
"max_null_rate": 0.1,
"name": "email",
"type": "string",
},
],
"primary_key": [
"order_id",
],
},
"csv": "order_id,currency,amount,placed_at,email\n1001,USD,42.50,2026-09-30,[email protected]\n1002,EUR,-3,2026-09-31,\n1001,GBP,19.99,2026-10-01,[email protected]\n",
},
)
print(res.status_code, res.text)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 | 780 ms | $0.12 |
| 10 h ago | Passed | 402 | 539 ms | $0.12 |
| 15 h ago | Passed | 402 | 497 ms | $0.12 |
| 20 h ago | Passed | 402 | 532 ms | $0.12 |
| 25 h ago | Passed | 402 | 592 ms | $0.12 |
Show 10 older checks
| 30 h ago | Passed | 402 | 540 ms | $0.12 |
| 34 h ago | Passed | 402 | 673 ms | $0.12 |
| 39 h ago | Passed | 402 | 488 ms | $0.12 |
| 44 h ago | Passed | 402 | 501 ms | $0.12 |
| 2 days ago | Passed | 402 | 675 ms | $0.12 |
| 2 days ago | Passed | 402 | 451 ms | $0.12 |
| 2 days ago | Passed | 402 | 593 ms | $0.12 |
| 3 days ago | Passed | 402 | 459 ms | $0.12 |
| 3 days ago | Passed | 402 | 650 ms | $0.12 |
| 3 days ago | Passed | 402 | 668 ms | $0.12 |