mirrored listing x402 eip155:8453

ERC1155 token balance via balanceOf (eth_call) - how many copies of a token_id a wallet ho

ERC1155 token balance via balanceOf (eth_call) - how many copies of a token_id a wallet holds

Do you run api.onesource.io? 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
3000 (raw units)
price
366
calls / 30d
366
unique payers
2026-09-18
updated

Provider

api.onesource.io · discovered, not yet claimed by its owner

Payment (x402 accepts[])

[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x52E29e0d2Aa49bfBfC548C0A9F2196F4aa51f3ea",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "3000",
    "maxTimeoutSeconds": 3600
  },
  {
    "scheme": "batch-settlement",
    "network": "eip155:8453",
    "payTo": "0x52E29e0d2Aa49bfBfC548C0A9F2196F4aa51f3ea",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "3000",
    "maxTimeoutSeconds": 3600
  }
]

Output schema

{
  "bazaar": {
    "info": {
      "input": {
        "method": "GET",
        "queryParams": {
          "address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
          "contract": "0xdac17f958d2ee523a2206206994597c13d831ec7",
          "network": "ethereum",
          "token_id": "1"
        },
        "type": "http"
      },
      "output": {
        "example": {
          "data": {
            "account": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
            "balance": "42",
            "contract_address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
            "token_id": "1"
          },
          "meta": {
            "cost_usdc": "0.001",
            "endpoint": "/api/chain/erc1155-balance",
            "payment_chain": "base",
            "payment_token": "USDC",
            "request_id": "00000000abcdef01"
          }
        },
        "type": "json"
      }
    },
    "schema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "properties": {
        "input": {
          "additionalProperties": false,
          "properties": {
            "method": {
              "enum": [
                "GET",
                "HEAD",
                "DELETE"
              ],
              "type": "string"
            },
            "queryParams": {
              "properties": {
                "address": {
                  "pattern": "^0x[a-fA-F0-9]{40}$",
                  "type": "string"
                },
                "contract": {
                  "pattern": "^0x[a-fA-F0-9]{40}$",
                  "type": "string"
                },
                "network": {
                  "default": "ethereum",
                  "enum": [
                    "ethereum",
                    "sepolia",
                    "robinhood"
                  ],
                  "type": "string"
                },
                "token_id": {
                  "pattern": "^[0-9]+$",
                  "type": "string"
                }
              },
              "required": [
                "address",
                "contract",
                "token_id"
              ],
              "type": "object"
            },
            "type": {
              "const": "http",
              "type": "string"
            }
          },
          "required": [
            "type",
            "method"
          ],
          "type": "object"
        },
        "output": {
          "properties": {
            "example": {
              "properties": {
                "data": {
                  "description": "Endpoint-specific response payload",
                  "properties": {
                    "account": {
                      "type": "string"
                    },
                    "balance": {
                      "type": "string"
                    },
                    "contract_address": {
                      "type": "string"
                    },
                    "token_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "error": {
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "meta": {
                  "properties": {
                    "cost_usdc": {
                      "type": "string"
                    },
                    "endpoint": {
                      "type": "string"
                    },
                    "payment_chain": {
                      "type": "string"
                    },
                    "payment_token": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "endpoint",
                    "request_id"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "data",
                "meta"
              ],
              "type": "object"
            },
            "type": {
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "type": "object"
        }
      },
      "required": [
        "input"
      ],
      "type": "object"
    }
  }
}

Use it

curl

curl "https://api.onesource.io/api/chain/erc1155-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://api.onesource.io/api/chain/erc1155-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://api.onesource.io/api/chain/erc1155-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/58.json, and this resource appears in /discovery/resources and /discovery/search.