Reference
HTTP API
The site's public JSON routes: chain snapshot, token check, mandate activity and the read relay.
#Overview
Base URL https://deleq.xyz. JSON over HTTPS, no key, read-only: nothing here signs or sends a transaction. Big numbers are decimal strings. Limits are per network per minute (IPv6 counted per /64); a refused call answers 429 with {"error": "…"}. Errors are 400 (bad input) or 503 (the chain did not answer).
#GET /api/chain
Live facts for the whole site, refreshed at most every 8 seconds. 60 requests per minute.
{
"block": 122219359, // head block
"time": 1795522889, // its timestamp (unix seconds)
"blockSeconds": 0.106, // average over the last 100,000 blocks
"gasPriceWei": "20000000",
"ethUsd": { "price": 1701.87, "updatedAt": 1795521358, "feed": "0x78f3…d3a9" }, // Chainlink, or null
"guardCode": true, // DeleqMandateGuard has code, or null when not configured
"readAt": 1795522890863
}#GET /api/token-check
?token=0x… (40 hex characters). The rows of the token check. 30 requests per minute; a complete answer is cached 60 seconds per token.
{
"token": "0x5fc5…d168", "block": 121971140, "checkedAt": 1795495865,
"name": "Global Dollar", "symbol": "USDG", "decimals": 6,
"rows": [
{ "key": "erc20", "label": "ERC-20 metadata", "value": "Global Dollar · USDG · 6 decimals",
"tone": "ok", "source": { "method": "name() symbol() decimals() totalSupply()", "address": "0x5fc5…d168" } }
// … tone is ok | info | warn | risk | unknown
],
"flags": ["proxy", "power-mint", "power-upgrade"]
}#GET /api/activity
?owner=0x… or ?agent=0x… (one of them). Mandates from the guard's views and every guard event for them from its logs (newest first, up to 300). 30 requests per minute; a complete answer is cached 8 seconds (&fresh=1 skips the cache after your own transaction).
{
"deployed": true, "guard": "0x57dd851d840b1f0a2896dc1524c398c4574ff3c1", "head": 122220130,
"mandates": [{
"id": 1, "owner": "0x…", "agent": "0x…", "validFrom": 1795496543, "expiry": 1798088545,
"maxActionsPerDay": 10, "version": 5, "paused": false, "revoked": false, "label": "demo bot",
"createdAt": 1795496543, "actions": 2, "actionsToday": 2,
"tokens": [{ "token": "0x5fc5…d168", "perTxCap": "10000000", "dailyCap": "25000000",
"listed": true, "spentToday": "8000000", "leftToday": "17000000" }],
"recipients": ["0x…"], "routers": []
}],
"events": [{ "name": "TransferExecuted", "id": 1, "block": 122220001, "tx": "0x…", "logIndex": 3,
"args": { "amount": "8000000", "to": "0x…", "spentToday": "8000000", "ref": "0x…" } }],
"scanned": { "fromBlock": 122213192, "toBlock": 122220130, "gaps": [], "complete": true }
}#POST /api/rpc
A JSON-RPC relay for the browser (some networks intercept the public RPC host). It forwards only these read methods, priced in units: eth_call (2), eth_getTransactionReceipt (1), eth_getTransactionByHash (1), eth_blockNumber (1), eth_getBalance (1), eth_chainId (1), eth_gasPrice (1), eth_getBlockByNumber (1), eth_getTransactionCount (1), eth_maxPriorityFeePerGas (1), eth_getCode (1), eth_estimateGas (3). Calls go to the guard, USDG, WETH, the ETH/USD feed and $DELEQ, or to any address for a short list of plain ERC-20 reads; at most 20 calls per batch, no state overrides, gas capped. Budget: 2,000 units per network per 10 minutes. It never forwards a signed transaction.