77trust / 100

Warranty Period

by rechen.halowerk.com in Onchain & crypto

x402 APIPassing, checked 2 h ago

Limitation of defect claims for sale (§ 438), works (§ 634a BGB) and VOB/B construction contracts, with consumer-sale extensions (§§ 475e, 476, 477 BGB) and § 193 shift.

POST
https://rechen.halowerk.com/v1/warranty-period
Price
$0.002
per call in USDC
Uptime
95.8%
last 30 days
Response time
128 ms
181 ms slowest 5%
Last check
Passed
2 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://rechen.halowerk.com/v1/warranty-period

Each call costs $0.002 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://rechen.halowerk.com/v1/warranty-period
content-type: application/json

{
  "consumer_sale": true,
  "regime": "sale_movable",
  "start_date": "2024-11-29",
  "state": "BY"
}

Parameters

ParameterTypeRequiredDescription
agreed_yearsnumberNo
consumer_salebooleanNo Default: false.
defect_appearedstring (date)No
regimestringYes One of: sale_movable, sale_land, sale_building, sale_building_material, sale_third_party_right_in_rem, work_thing, work_building, vob_b_building, vob_b_other_work, vob_b_fire_touched_parts, vob_b_industrial_firing, vob_b_maintenance_parts.
regionstringNo One of: A, KATH, EVANG, BZ, EIC, UH, WAK.
start_datestring (date)Yes
statestringNo One of: BB, BE, BW, BY, HB, HE, HH, MV, NI, NW, RP, SH.
used_goodsbooleanNo Default: false.

Example response

The provider's example. We can't check it without paying.

Example response, 43 lines
{
  "limitations": [
    "Information computed from the statutory wording and stated conventions; not legal or tax advice.",
    "Contracts, collective agreements, court orders or special statutes can set other periods; check the individual case.",
    "Holidays come from the date-holidays package (type public); municipal holidays need the region parameter.",
    "Fraudulent concealment (§ 438(3), § 634a(3) BGB) switches to the regular period; use limitation-period for that case.",
    "Suspension (e.g. negotiations, § 203 BGB), guarantees and digital-element rules (§ 475e(1), (2)) are not modelled."
  ],
  "result": {
    "burden_of_proof_presumption_until": "2025-11-29",
    "differs_in_regions": [],
    "end": "2026-11-30",
    "end_weekday": "Monday",
    "extended_by_475e": null,
    "holiday_basis": {
      "region": null,
      "scope": "state-wide holidays",
      "source": "date-holidays 3.38.0 (https://github.com/commenthol/date-holidays, ISC licence, holiday data CC BY-SA 3.0); type \"public\" only",
      "state": "BY"
    },
    "norm": "§ 438(1) no. 3, (2) BGB",
    "notes": [],
    "period_years": 2,
    "raw_end": "2026-11-29",
    "regime": "sale_movable",
    "shift_steps": [
      {
        "date": "2026-11-29",
        "reason": "Sunday",
        "weekday": "Sunday"
      }
    ],
    "shifted": true,
    "start_date": "2024-11-29",
    "start_event": "delivery",
    "steps": [
      "§ 438(1) no. 3, (2) BGB: 2 year(s) from delivery on 2024-11-29; § 187(1)/§ 188(2) BGB give 2026-11-29.",
      "§ 193 BGB (BGH III ZR 146/07): 2026-11-29 is not a working day; the period ends on 2026-11-30."
    ]
  },
  "service": "warranty-period",
  "status": "success"
}

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.002.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://rechen.halowerk.com/v1/warranty-period' \
  -H 'content-type: application/json' \
  --data-raw '{"consumer_sale":true,"regime":"sale_movable","start_date":"2024-11-29","state":"BY"}'

# 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://rechen.halowerk.com/v1/warranty-period' \
  -H 'content-type: application/json' \
  --data-raw '{"consumer_sale":true,"regime":"sale_movable","start_date":"2024-11-29","state":"BY"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: 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.002 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.002" });
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.002 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Frechen.halowerk.com%2Fv1%2Fwarranty-period&method=POST
const res = await pay("https://rechen.halowerk.com/v1/warranty-period", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "consumer_sale": true,
    "regime": "sale_movable",
    "start_date": "2024-11-29",
    "state": "BY"
  }),
});
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.002 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.002"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://rechen.halowerk.com/v1/warranty-period",
        json={
            "consumer_sale": True,
            "regime": "sale_movable",
            "start_date": "2024-11-29",
            "state": "BY",
        },
    )
    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

WhenResultHTTPTimePrice
2 h agoPassed402161 ms$0.002
13 h agoPassed402133 ms$0.002
26 h agoPassed402139 ms$0.002
3 days agoTimed out---
4 days agoPassed402128 ms$0.002
Show 10 older checks
5 days agoPassed402138 ms$0.002
5 days agoPassed402122 ms$0.002
6 days agoPassed402133 ms$0.002
6 days agoPassed402124 ms$0.002
6 days agoPassed402123 ms$0.002
7 days agoPassed402146 ms$0.002
7 days agoPassed402113 ms$0.002
7 days agoPassed402428 ms$0.002
8 days agoPassed40239 ms$0.002
8 days agoPassed402133 ms$0.002