Whether the AgentPay x402 facilitator on Base is alive right now, answered two independent ways. This page refreshes every 30 seconds from GET /facilitator/heartbeat.
The key that settles payments signs the newest block this facilitator has polled. A valid signature means that key is loaded and working at this moment.
Two public Base RPCs, separate from the one path A polls, report the chain head. Agreement means the chain is advancing and we are reading the same chain everyone else is.
The most recent payment this facilitator settled, with its receipt re-read from Base on every check. It is shown for reference and is never part of the verdict: a quiet day is not an outage.
| Verdict | Rule |
|---|---|
| Live | Path A passes, path B passes, both public RPCs agree, the block path A signed exists on the public chain and is recent, and the settler has gas. |
| Degraded | Both paths pass, but one public RPC is silent or the settler gas is low. |
| Down | Either path fails, or the block path A signed is missing or old on the public chain. The endpoint answers HTTP 503. |
The exact thresholds are in the rules object of every response, so the page and the endpoint cannot drift apart.
Trust the signature, not this page. Fetch the heartbeat, recover the signer from the message, and compare it with the settler address published on the settlement policy.
pip install eth-account
import json, urllib.request
from eth_account import Account
from eth_account.messages import encode_defunct
req = urllib.request.Request(
"https://x402-agent-pay.com/facilitator/heartbeat",
headers={"User-Agent": "Mozilla/5.0"})
hb = json.load(urllib.request.urlopen(req))
a = hb["path_a_signer"]
signer = Account.recover_message(
encode_defunct(text=a["message"]), signature=a["signature"])
print(hb["verdict"], signer == a["expected_signer"])
Then open the transaction under "Last settled payment" on Basescan. Neither check depends on anything we say.
GET https://x402-agent-pay.com/facilitator/heartbeat returns the same reading as JSON, free and without a key. It answers 200 when the verdict is live or degraded and 503 when it is down, so a monitor can read the status line alone. The same reading is available as the MCP tool x402_facilitator_heartbeat. The settlement terms have their own tamper check at /facilitator/policy/hash.