77trust / 100

Girocode Generate

by bild.halowerk.com in Developer tools

x402 APIPassing, checked 9 h ago

Build an EPC QR code (GiroCode) for a SEPA credit transfer per EPC069-12 v3.1: validated payload, QR as SVG/PNG at error correction M, decode-verified.

POST
https://bild.halowerk.com/v1/girocode-generate
Price
$0.002
per call in USDC
Uptime
96.0%
last 30 days
Response time
48 ms
182 ms slowest 5%
Last check
Passed
9 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://bild.halowerk.com/v1/girocode-generate

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://bild.halowerk.com/v1/girocode-generate
content-type: application/json

{
  "amount": 12.3,
  "bic": "BHBLDEHHXXX",
  "iban": "DE71110220330123456789",
  "name": "Franz Mustermänn",
  "output": "svg",
  "purpose": "GDDS",
  "reference": "RF18539007547034",
  "version": "001"
}

Parameters

ParameterTypeRequiredDescription
amountnumberNo
bicstringNo
character_setintegerNo Default: 1.
ibanstringYes
informationstringNo
line_endingstringNo One of: LF, CRLF. Default: "LF".
module_pxintegerNo Default: 8.
namestringYes
outputstringNo One of: svg, png, both, payload. Default: "both".
purposestringNo
referencestringNo
textstringNo
versionstringNo One of: 001, 002. Default: "002".

Example response

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

Example response, 26 lines
{
  "limitations": [
    "Reachability of the IBAN in SEPA and the existence of the account are not checked.",
    "Purpose codes are checked for form only, not against the ISO 20022 code list."
  ],
  "result": {
    "character_set": {
      "code": 1,
      "name": "UTF-8"
    },
    "error_correction": "M",
    "findings": [],
    "payload": "BCD\n001\n1\nSCT\nBHBLDEHHXXX\nFranz Mustermänn\nDE71110220330123456789\nEUR12.3\nGDDS\nRF18539007547034",
    "payload_bytes": 96,
    "payload_characters": 95,
    "qr_version": 6,
    "size_modules": 41,
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 49 49\" shape-rendering=\"crispEdges\"><rect width=\"49\" height=\"49\" fill=\"#ffffff\"/><path fill=\"#000000\" d=\"M4 4h7v1h-7zM15 4h1v1h-1zM17 4h1v1h-1zM19 4h2v1h-2zM22 4h1v1h-1zM24 4h1v1h-1zM27 4h2v1h-2zM31 4h2v1h-2zM35 4h1v1h-1zM38 4h7v1h-7zM4 5h1v1h-1zM10 5h1v1h-1zM15 5h3v1h-3zM20 5h1v1h-1zM22 5h1v1h-1zM26 5h1v1h-1zM28 5h1v1h-1zM31 5h1v1h-1zM34 5h1v1h… [truncated, 6128 chars]",
    "verification": {
      "decoded": true,
      "payload_matches": true
    }
  },
  "service": "girocode-generate",
  "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://bild.halowerk.com/v1/girocode-generate' \
  -H 'content-type: application/json' \
  --data-raw '{"amount":12.3,"bic":"BHBLDEHHXXX","iban":"DE71110220330123456789","name":"Franz Musterm\u00e4nn","output":"svg","purpose":"GDDS","reference":"RF18539007547034","version":"001"}'

# 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://bild.halowerk.com/v1/girocode-generate' \
  -H 'content-type: application/json' \
  --data-raw '{"amount":12.3,"bic":"BHBLDEHHXXX","iban":"DE71110220330123456789","name":"Franz Musterm\u00e4nn","output":"svg","purpose":"GDDS","reference":"RF18539007547034","version":"001"}' \
  | 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%2Fbild.halowerk.com%2Fv1%2Fgirocode-generate&method=POST
const res = await pay("https://bild.halowerk.com/v1/girocode-generate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "amount": 12.3,
    "bic": "BHBLDEHHXXX",
    "iban": "DE71110220330123456789",
    "name": "Franz Musterm\u00e4nn",
    "output": "svg",
    "purpose": "GDDS",
    "reference": "RF18539007547034",
    "version": "001"
  }),
});
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://bild.halowerk.com/v1/girocode-generate",
        json={
            "amount": 12.3,
            "bic": "BHBLDEHHXXX",
            "iban": "DE71110220330123456789",
            "name": "Franz Musterm\u00e4nn",
            "output": "svg",
            "purpose": "GDDS",
            "reference": "RF18539007547034",
            "version": "001",
        },
    )
    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
9 h agoPassed40244 ms$0.002
2 days agoTimed out---
4 days agoPassed40252 ms$0.002
4 days agoPassed402129 ms$0.002
4 days agoPassed402131 ms$0.002
Show 10 older checks
5 days agoPassed40240 ms$0.002
5 days agoPassed402165 ms$0.002
6 days agoPassed40241 ms$0.002
6 days agoPassed402136 ms$0.002
6 days agoPassed402123 ms$0.002
7 days agoPassed40238 ms$0.002
7 days agoPassed402182 ms$0.002
7 days agoPassed40240 ms$0.002
7 days agoPassed402138 ms$0.002
8 days agoPassed40240 ms$0.002