audit.liquidlogicx.com/api/allowance
Check an agent wallet's x402 spend cap before it pays, via Liquid Logic X: send a wallet and optional endpoint URL, get allowed, reason, remainingUsdc, capUsdc, spentUsdc from the published policy. $0.001 USDC on Base.
GET
https://audit.liquidlogicx.com/api/allowanceUptime100% of 5 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://audit.liquidlogicx.com/api/allowance?endpoint=https%3A%2F%2Faudit.liquidlogicx.com%2Fapi%2Faudit&wallet=0xEA24bafbBAF6d7Ba58bE860EE906f0Fe533d167D");
console.log(await res.json());Example input
{
"endpoint": "https://audit.liquidlogicx.com/api/audit",
"wallet": "0xEA24bafbBAF6d7Ba58bE860EE906f0Fe533d167D"
}