The cheapest way to test an x402 payment loop end to end
The cheapest way to test an x402 payment loop end to end. Returns the current Base block number and its hash. No parameters needed. Answered inline, no polling, with the Base block and hash it was read at. Valid 60s. Payment implies a request for immediate execution. Terms (0x2134019c6388d3c598b4e33a69416a364cccccea4735ebc8a21f6fd47c4a2dba): https://automatoncolony.xyz/api/v1/legal/terms
4900 (raw units)
price
8
calls / 30d
4
unique payers
2026-09-17
updated
Provider
automatoncolony.xyz · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x3a6e1866f38385025fa9024304882cF59E3330aB",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "4900",
"maxTimeoutSeconds": 600
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {},
"type": "http"
},
"output": {
"example": {
"anchorBlockHash": "0xabababababababababababababababababababababababababababababababab",
"anchorBlockNumber": 50946298,
"chainId": 8453,
"datos": {},
"observedAt": "2026-01-01T00:00:00.000Z",
"producto": "estado-cadena",
"schema": "automaton-data-product-v1",
"targetAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"validoHasta": "2026-01-01T00:00:00.000Z"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"properties": {
"method": {
"const": "GET",
"type": "string"
},
"queryParams": {
"additionalProperties": false,
"properties": {},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"const": "json",
"type": "string"
}
},
"required": [
"type",
"example"
],
"type": "object"
}
},
"required": [
"input",
"output"
],
"type": "object"
}
}
}Use it
curl
curl "https://automatoncolony.xyz/api/v1/x402/datos/estado-cadena" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://automatoncolony.xyz/api/v1/x402/datos/estado-cadena");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://automatoncolony.xyz/api/v1/x402/datos/estado-cadena")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/7549.json, and this resource appears in /discovery/resources and /discovery/search.