mirrored listing x402 eip155:8453

Read an ERC-20 token balance on Base

Read an ERC-20 token balance on Base. POST {"address":"0x...","token":"0x..."} and receive the raw balance, the token decimals and the human-readable amount. Defaults to USDC when token is omitted. Live chain state, no indexer lag.

Do you run x402-echo-service.onrender.com? This listing was mirrored from Coinbase's public Bazaar. Claim it in 30 seconds — no account required — and it becomes verified, permanently overriding the mirrored copy.

Claim this listing
1000 (raw units)
price
1
calls / 30d
1
unique payers
2026-08-30
updated

Provider

x402-echo-service.onrender.com · discovered, not yet claimed by its owner

Payment (x402 accepts[])

[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x9Cc774A8eD49d89cBA1A288F4a050B8F7FbA77EE",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000",
    "maxTimeoutSeconds": 300
  }
]

Output schema

{
  "bazaar": {
    "category": "Infra",
    "coverImage": "https://x402-echo-service.onrender.com/icon.png",
    "info": {
      "input": {
        "body": {
          "address": "0x9Cc774A8eD49d89cBA1A288F4a050B8F7FbA77EE"
        },
        "bodyType": "json",
        "method": "POST",
        "type": "http"
      },
      "output": {
        "example": {
          "address": "0x9Cc774A8eD49d89cBA1A288F4a050B8F7FbA77EE",
          "amount": "4.111",
          "decimals": 6,
          "raw": "4111000",
          "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
        },
        "type": "json"
      }
    },
    "schema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "properties": {
        "input": {
          "properties": {
            "body": {
              "additionalProperties": false,
              "properties": {
                "address": {
                  "description": "Account to read.",
                  "type": "string"
                },
                "token": {
                  "description": "ERC-20 contract. Defaults to USDC on Base.",
                  "type": "string"
                }
              },
              "required": [
                "address"
              ],
              "type": "object"
            },
            "bodyType": {
              "enum": [
                "json"
              ]
            },
            "method": {
              "enum": [
                "POST"
              ],
              "type": "string"
            },
            "type": {
              "const": "http"
            }
          },
          "required": [
            "type",
            "bodyType",
            "body",
            "method"
          ],
          "type": "object"
        },
        "output": {
          "properties": {
            "example": {
              "properties": {
                "address": {
                  "type": "string"
                },
                "amount": {
                  "type": "string"
                },
                "decimals": {
                  "type": "integer"
                },
                "raw": {
                  "type": "string"
                },
                "token": {
                  "type": "string"
                }
              },
              "required": [
                "address",
                "token",
                "raw",
                "decimals",
                "amount"
              ],
              "type": "object"
            },
            "type": {
              "const": "json"
            }
          },
          "required": [
            "type",
            "example"
          ],
          "type": "object"
        }
      },
      "required": [
        "input",
        "output"
      ],
      "type": "object"
    },
    "serviceName": "ERC-20 Balance",
    "summary": "Token balance for any address on Base, decimals applied.",
    "tags": [
      "erc20",
      "balance",
      "base",
      "onchain",
      "token"
    ]
  }
}

Use it

curl

curl "https://x402-echo-service.onrender.com/chain/erc20-balance"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid

JavaScript

const res = await fetch("https://x402-echo-service.onrender.com/chain/erc20-balance");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}

Python

import httpx
res = httpx.get("https://x402-echo-service.onrender.com/chain/erc20-balance")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Machine-readable

Everything on this page is also available as clean JSON at /resources/8186.json, and this resource appears in /discovery/resources and /discovery/search.