{
  "x402Version": 2,
  "id": 36641,
  "slug": "36641",
  "resource": "https://audit.liquidlogicx.com/api/allowance",
  "description": "x402 spend cap and allowance check by Liquid Logic X: call it before paying an x402 endpoint. Input: wallet (the Liquid Logic X treasurer, 0xEA24...) and optional endpoint URL. Output: JSON { allowed, reason, remainingUsdc, capUsdc, spentUsdc } from the published spend policy (allowlist, max per payment, UTC daily cap) and public ledger. Omit endpoint for remaining cap + allowlist. $0.001 USDC on Base. Site: https://liquidlogicx.com",
  "type": "http",
  "serviceName": "x402 Spend Cap/Allowance Check",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1790770824/bazaar-icons/a00cfa28ab21cfd9.png",
  "resourceType": "Beauty & Personal Care",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x147991A1c25e78f6D9225d2dBA61eD93A6158c7b",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "endpoint": "https://audit.liquidlogicx.com/api/audit",
            "wallet": "0xEA24bafbBAF6d7Ba58bE860EE906f0Fe533d167D"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "allowed": true,
            "asset": "USDC",
            "capUsdc": 10,
            "day": "2026-09-14",
            "endpoint": "https://audit.liquidlogicx.com/api/audit",
            "endpointAllowlisted": true,
            "maxPerPaymentUsdc": 1,
            "network": "eip155:8453",
            "reason": "Allowlisted; 9.9 USDC remaining under the UTC daily cap (2026-09-14). Max per payment 1.00 USDC.",
            "remainingUsdc": 9.9,
            "source": "treasurer_policy",
            "spentUsdc": 0.1,
            "spentWindow": "utc_calendar_day",
            "walletAddress": "0xEA24bafbBAF6d7Ba58bE860EE906f0Fe533d167D"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "endpoint": {
                    "description": "Optional x402 URL the wallet wants to pay. Omit to get remaining cap + allowlist summary.",
                    "type": "string"
                  },
                  "wallet": {
                    "description": "Wallet to check (Liquid Logic treasurer is 0xEA24bafbBAF6d7Ba58bE860EE906f0Fe533d167D)",
                    "type": "string"
                  }
                },
                "required": [
                  "wallet"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "s": [
          "cdp_sdk_server"
        ]
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "maxItems": 11,
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "eip2612GasSponsoring": {},
    "erc20ApprovalGasSponsoring": {}
  },
  "tags": [
    "allowance",
    "spend-controls",
    "agent-payments",
    "x402",
    "usdc",
    "bazaar",
    "builder-code",
    "eip2612GasSponsoring",
    "erc20ApprovalGasSponsoring"
  ],
  "sourceHost": "audit.liquidlogicx.com",
  "lastUpdated": "2026-10-08T21:05:25.892Z",
  "quality": {
    "calls30d": 9,
    "uniquePayers30d": 7,
    "lastCalledAt": "2026-10-08T21:05:25.695Z"
  },
  "metadata": {
    "serviceName": "x402 Spend Cap/Allowance Check",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1790770824/bazaar-icons/a00cfa28ab21cfd9.png",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "endpoint": "https://audit.liquidlogicx.com/api/audit",
              "wallet": "0xEA24bafbBAF6d7Ba58bE860EE906f0Fe533d167D"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "allowed": true,
              "asset": "USDC",
              "capUsdc": 10,
              "day": "2026-09-14",
              "endpoint": "https://audit.liquidlogicx.com/api/audit",
              "endpointAllowlisted": true,
              "maxPerPaymentUsdc": 1,
              "network": "eip155:8453",
              "reason": "Allowlisted; 9.9 USDC remaining under the UTC daily cap (2026-09-14). Max per payment 1.00 USDC.",
              "remainingUsdc": 9.9,
              "source": "treasurer_policy",
              "spentUsdc": 0.1,
              "spentWindow": "utc_calendar_day",
              "walletAddress": "0xEA24bafbBAF6d7Ba58bE860EE906f0Fe533d167D"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "endpoint": {
                      "description": "Optional x402 URL the wallet wants to pay. Omit to get remaining cap + allowlist summary.",
                      "type": "string"
                    },
                    "wallet": {
                      "description": "Wallet to check (Liquid Logic treasurer is 0xEA24bafbBAF6d7Ba58bE860EE906f0Fe533d167D)",
                      "type": "string"
                    }
                  },
                  "required": [
                    "wallet"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "builder-code": {
        "info": {
          "s": [
            "cdp_sdk_server"
          ]
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "a": {
              "description": "App builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "s": {
              "description": "Service builder codes",
              "items": {
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "maxItems": 11,
              "type": "array"
            },
            "w": {
              "description": "Wallet builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "eip2612GasSponsoring": {},
      "erc20ApprovalGasSponsoring": {}
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "audit.liquidlogicx.com",
    "manifest_name": "audit.liquidlogicx.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}