Computes a deterministic shortest path over caller-supplied directed or bidirectional link
Computes a deterministic shortest path over caller-supplied directed or bidirectional links with non-negative costs. It does not measure live radio conditions, reserve capacity or push routes to devices.
4000 (raw units)
price
1
calls / 30d
1
unique payers
2026-09-01
updated
Provider
iot.halowerk.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x2880EdfFF13100677Bf97A3CBdF3Bc34771C4E5E",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "4000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"goal": "sensor",
"links": [
{
"cost": 1,
"from": "gateway",
"to": "relay-a"
},
{
"cost": 2,
"from": "relay-a",
"to": "sensor"
},
{
"cost": 2,
"from": "gateway",
"to": "relay-b"
},
{
"cost": 4,
"from": "relay-b",
"to": "sensor"
}
],
"nodes": [
"gateway",
"relay-a",
"relay-b",
"sensor"
],
"start": "gateway"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"goal": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"links": {
"items": {
"additionalProperties": false,
"properties": {
"bidirectional": {
"default": true,
"type": "boolean"
},
"cost": {
"maximum": 1000000000,
"minimum": 0,
"type": "number"
},
"from": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"to": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"from",
"to",
"cost"
],
"type": "object"
},
"maxItems": 10000,
"minItems": 1,
"type": "array"
},
"nodes": {
"items": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"maxItems": 500,
"minItems": 2,
"type": "array",
"uniqueItems": true
},
"start": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"nodes",
"links",
"start",
"goal"
],
"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"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://iot.halowerk.com/v1/mesh-route" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://iot.halowerk.com/v1/mesh-route");
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://iot.halowerk.com/v1/mesh-route")
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/15226.json, and this resource appears in /discovery/resources and /discovery/search.