{
  "x402Version": 2,
  "id": 52576,
  "slug": "52576",
  "resource": "https://jtifhcvbgxqwlywugvjv.supabase.co/functions/v1/cortex402-wallet-balance",
  "description": "Check any wallet balance across 5 EVM chains. Returns native or ERC-20 balance with threshold check, block height, and on-chain receipt. Supports Base, Ethereum, Arbitrum, Optimism, and Polygon.",
  "type": "http",
  "serviceName": "CorteX402 Wallet Balance",
  "resourceType": "Blockchain Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x1372C2140105Ff1DD77f148B8AD5bb976cc7eC0f",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 30
    }
  ],
  "outputSchema": {
    "example": {
      "address": "0xa2477E16dCB42E2AD80f03FE97D7F1a1646cd1c0",
      "balance": {
        "decimals": 6,
        "formatted": "1234.56789",
        "raw": "1234567890"
      },
      "block": "0x14a3b3c",
      "chain_id": 8453,
      "deficit": null,
      "fetched_at": "2026-05-15T18:00:00Z",
      "network": "base",
      "receipt_tx": "0x9f4a2c8e6b1d3a5f7e0c2b1d4a6f8e2c0b1d3a5f7e0c2b1d4a6f8e2c0b1d3a5f",
      "request_id": "wb_8f2a1c4e7b9d5a3f6e0c2b1d",
      "source": "Base mainnet RPC · eth_call balanceOf(address)",
      "sufficient": null,
      "threshold": null,
      "token": {
        "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "decimals": 6,
        "kind": "erc20",
        "symbol": "USDC"
      }
    },
    "type": "json"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "address": "0xa2477E16dCB42E2AD80f03FE97D7F1a1646cd1c0",
            "network": "base",
            "token": "USDC"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "address": "0xa2477E16dCB42E2AD80f03FE97D7F1a1646cd1c0",
            "balance": {
              "decimals": 6,
              "formatted": "1234.56789",
              "raw": "1234567890"
            },
            "block": "0x14a3b3c",
            "chain_id": 8453,
            "deficit": null,
            "fetched_at": "2026-05-15T18:00:00Z",
            "network": "base",
            "receipt_tx": "0x9f4a2c8e6b1d3a5f7e0c2b1d4a6f8e2c0b1d3a5f7e0c2b1d4a6f8e2c0b1d3a5f",
            "request_id": "wb_8f2a1c4e7b9d5a3f6e0c2b1d",
            "source": "Base mainnet RPC · eth_call balanceOf(address)",
            "sufficient": null,
            "threshold": null,
            "token": {
              "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
              "decimals": 6,
              "kind": "erc20",
              "symbol": "USDC"
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "address": {
                    "description": "EVM wallet address (0x-prefixed 40-hex)",
                    "type": "string"
                  },
                  "network": {
                    "description": "Chain to query. Defaults to Base mainnet.",
                    "enum": [
                      "base",
                      "ethereum",
                      "arbitrum",
                      "optimism",
                      "polygon"
                    ],
                    "type": "string"
                  },
                  "threshold": {
                    "description": "Optional decimal amount or raw atomic units. If provided, response includes sufficient/deficient flag.",
                    "type": "string"
                  },
                  "token": {
                    "description": "Token symbol (USDC/USDT/WETH/WBTC/DAI) or raw ERC-20 contract address. Omit for native balance.",
                    "type": "string"
                  }
                },
                "required": [
                  "address"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "wallet",
    "balance",
    "evm",
    "crypto",
    "multichain",
    "bazaar"
  ],
  "sourceHost": "jtifhcvbgxqwlywugvjv.supabase.co",
  "lastUpdated": "2026-10-08T05:40:03.104Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T05:40:02.832Z"
  },
  "metadata": {
    "serviceName": "CorteX402 Wallet Balance",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "address": "0xa2477E16dCB42E2AD80f03FE97D7F1a1646cd1c0",
              "network": "base",
              "token": "USDC"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "address": "0xa2477E16dCB42E2AD80f03FE97D7F1a1646cd1c0",
              "balance": {
                "decimals": 6,
                "formatted": "1234.56789",
                "raw": "1234567890"
              },
              "block": "0x14a3b3c",
              "chain_id": 8453,
              "deficit": null,
              "fetched_at": "2026-05-15T18:00:00Z",
              "network": "base",
              "receipt_tx": "0x9f4a2c8e6b1d3a5f7e0c2b1d4a6f8e2c0b1d3a5f7e0c2b1d4a6f8e2c0b1d3a5f",
              "request_id": "wb_8f2a1c4e7b9d5a3f6e0c2b1d",
              "source": "Base mainnet RPC · eth_call balanceOf(address)",
              "sufficient": null,
              "threshold": null,
              "token": {
                "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "decimals": 6,
                "kind": "erc20",
                "symbol": "USDC"
              }
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "address": {
                      "description": "EVM wallet address (0x-prefixed 40-hex)",
                      "type": "string"
                    },
                    "network": {
                      "description": "Chain to query. Defaults to Base mainnet.",
                      "enum": [
                        "base",
                        "ethereum",
                        "arbitrum",
                        "optimism",
                        "polygon"
                      ],
                      "type": "string"
                    },
                    "threshold": {
                      "description": "Optional decimal amount or raw atomic units. If provided, response includes sufficient/deficient flag.",
                      "type": "string"
                    },
                    "token": {
                      "description": "Token symbol (USDC/USDT/WETH/WBTC/DAI) or raw ERC-20 contract address. Omit for native balance.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "address"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "jtifhcvbgxqwlywugvjv.supabase.co",
    "manifest_name": "jtifhcvbgxqwlywugvjv.supabase.co",
    "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": {
    "address": "0xa2477E16dCB42E2AD80f03FE97D7F1a1646cd1c0",
    "balance": {
      "decimals": 6,
      "formatted": "1234.56789",
      "raw": "1234567890"
    },
    "block": "0x14a3b3c",
    "chain_id": 8453,
    "deficit": null,
    "fetched_at": "2026-05-15T18:00:00Z",
    "network": "base",
    "receipt_tx": "0x9f4a2c8e6b1d3a5f7e0c2b1d4a6f8e2c0b1d3a5f7e0c2b1d4a6f8e2c0b1d3a5f",
    "request_id": "wb_8f2a1c4e7b9d5a3f6e0c2b1d",
    "source": "Base mainnet RPC · eth_call balanceOf(address)",
    "sufficient": null,
    "threshold": null,
    "token": {
      "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "decimals": 6,
      "kind": "erc20",
      "symbol": "USDC"
    }
  }
}