{
  "x402Version": 2,
  "id": 4533,
  "slug": "4533",
  "resource": "https://anywaypossible.com/api/treasury",
  "description": "Preflight a Base USDC payment before an AI agent signs it. Check live funding and gas, confirm Base chain intent, classify the destination as an EOA or contract, catch zero-address, token-contract, and self-payment hazards, and receive a machine-readable proceed, fund, review, or reject decision. No account or API key.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xe5690D37805107C56f6195E65A262b234E0E5e75",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "address": "0x1111111111111111111111111111111111111111",
            "destinationAddress": "0x2222222222222222222222222222222222222222",
            "expectedChainId": 8453,
            "minGasReserveEth": "0.00005",
            "plannedSpendUsdc": "1.00"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "address": "0x1111111111111111111111111111111111111111",
            "alerts": [
              "USDC balance is below the planned spend.",
              "ETH balance is below the requested gas reserve."
            ],
            "blockNumber": 12345678,
            "chainId": 8453,
            "checks": [
              {
                "id": "network",
                "message": "Base mainnet confirmed.",
                "status": "pass"
              }
            ],
            "decision": "needs_funding",
            "destinationAddress": "0x2222222222222222222222222222222222222222",
            "destinationKind": "eoa",
            "eth": "0",
            "gasShortfallEth": "0.00005",
            "limitations": [
              "Onchain state and basic destination hazards only; recipient identity and contract behavior are not guaranteed."
            ],
            "minGasReserveEth": "0.00005",
            "network": "Base",
            "observedAt": "2026-01-01T00:00:00.000Z",
            "paymentCapacity": {
              "at0_001": "0",
              "at0_01": "0",
              "at0_05": "0",
              "at0_10": "0"
            },
            "plannedSpendUsdc": "1",
            "ready": false,
            "recommendedAction": "Fund the wallet with at least 1 USDC and 0.00005 ETH before paying.",
            "riskLevel": "medium",
            "safeToProceed": false,
            "status": "needs_funding",
            "usdc": "0",
            "usdcShortfall": "1"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "address": {
                    "description": "EVM wallet address on Base",
                    "pattern": "^0x[a-fA-F0-9]{40}$",
                    "type": "string"
                  },
                  "destinationAddress": {
                    "description": "Optional intended payment recipient on Base; enables destination hazard checks",
                    "pattern": "^0x[a-fA-F0-9]{40}$",
                    "type": "string"
                  },
                  "expectedChainId": {
                    "description": "Expected destination chain. This service only approves Base mainnet (8453).",
                    "enum": [
                      8453
                    ],
                    "type": "integer"
                  },
                  "minGasReserveEth": {
                    "description": "Minimum ETH gas reserve; defaults to 0.00005",
                    "pattern": "^[0-9]+(\\.[0-9]{1,18})?$",
                    "type": "string"
                  },
                  "plannedSpendUsdc": {
                    "description": "USDC amount the agent plans to spend; defaults to 1.00",
                    "pattern": "^[0-9]+(\\.[0-9]{1,6})?$",
                    "type": "string"
                  }
                },
                "required": [
                  "address"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "address": {
                    "type": "string"
                  },
                  "alerts": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "blockNumber": {
                    "type": "integer"
                  },
                  "chainId": {
                    "type": "integer"
                  },
                  "checks": {
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "decision": {
                    "enum": [
                      "safe_to_pay",
                      "needs_funding",
                      "needs_gas",
                      "review_destination",
                      "reject"
                    ],
                    "type": "string"
                  },
                  "destinationAddress": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "destinationKind": {
                    "enum": [
                      "not_provided",
                      "eoa",
                      "contract"
                    ],
                    "type": "string"
                  },
                  "eth": {
                    "type": "string"
                  },
                  "gasShortfallEth": {
                    "type": "string"
                  },
                  "limitations": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "minGasReserveEth": {
                    "type": "string"
                  },
                  "network": {
                    "type": "string"
                  },
                  "observedAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "paymentCapacity": {
                    "type": "object"
                  },
                  "plannedSpendUsdc": {
                    "type": "string"
                  },
                  "ready": {
                    "type": "boolean"
                  },
                  "recommendedAction": {
                    "type": "string"
                  },
                  "riskLevel": {
                    "enum": [
                      "low",
                      "medium",
                      "high"
                    ],
                    "type": "string"
                  },
                  "safeToProceed": {
                    "type": "boolean"
                  },
                  "status": {
                    "enum": [
                      "ready",
                      "needs_usdc",
                      "needs_gas",
                      "needs_funding"
                    ],
                    "type": "string"
                  },
                  "usdc": {
                    "type": "string"
                  },
                  "usdcShortfall": {
                    "type": "string"
                  }
                },
                "required": [
                  "address",
                  "destinationAddress",
                  "destinationKind",
                  "network",
                  "chainId",
                  "status",
                  "ready",
                  "safeToProceed",
                  "decision",
                  "riskLevel",
                  "recommendedAction",
                  "eth",
                  "usdc",
                  "plannedSpendUsdc",
                  "minGasReserveEth",
                  "usdcShortfall",
                  "gasShortfallEth",
                  "paymentCapacity",
                  "checks",
                  "alerts",
                  "limitations",
                  "blockNumber",
                  "observedAt"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "anyway_possible",
        "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": [
    "bazaar",
    "builder-code",
    "eip2612GasSponsoring",
    "erc20ApprovalGasSponsoring"
  ],
  "sourceHost": "anywaypossible.com",
  "lastUpdated": "2026-08-30T15:43:25.089Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-08-30T15:43:24.485Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "anywaypossible.com",
    "manifest_name": "anywaypossible.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}