Distributed lock / idempotency primitive for multi-agent swarms
Distributed lock / idempotency primitive for multi-agent swarms. claim(key) returns a token if free (with TTL); release(token) frees it; check(key) reports whether held. Stops multiple agents from double-processing the same work item.
1000 (raw units)
price
3
calls / 30d
3
unique payers
2026-09-17
updated
Provider
nodeproxy-production.up.railway.app · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x8E57BFDE053dBb6862991759c19affC5F383d5D0",
"asset": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"amount": "1000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"arguments": {
"key": "job:42",
"op": "check"
}
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"lock": {
"acquired": true,
"key": "job:42",
"op": "claim",
"token": "c3…"
}
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"arguments": {
"properties": {
"key": {
"description": "Lock key (work item identifier).",
"type": "string"
},
"op": {
"enum": [
"claim",
"release",
"check"
],
"type": "string"
},
"token": {
"type": "string"
},
"ttl_seconds": {
"type": "number"
}
},
"required": [
"key"
],
"type": "object"
}
},
"required": [
"arguments"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://nodeproxy-production.up.railway.app/agent-lock" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://nodeproxy-production.up.railway.app/agent-lock");
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://nodeproxy-production.up.railway.app/agent-lock")
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/6372.json, and this resource appears in /discovery/resources and /discovery/search.