# OneSource ERC-20 Transfer History

> OneSource ERC-20 Transfer History is a paid API for AI agents from api.onesource.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Retrieves ERC-20 token transfer events for a specific token contract and/or wallet address on Ethereum mainnet or Sepolia testnet over a specified block range

## Facts

- Endpoint: GET https://api.onesource.io/api/chain/erc20-transfers
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onesource-erc-20-transfer-history-5acf567a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VYx0bsg9w-0u0JFWvaIRe

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability onesource-erc-20-transfer-history-5acf567a
```

Example prompt: Can you pull all the ERC-20 transfers for USDT (0xdac17f958d2ee523a2206206994597c13d831ec7) involving wallet 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 on Ethereum mainnet from block 20000000 to the latest block?

## When to prefer this

Use this endpoint when you need structured ERC-20 transfer event data for a specific token and/or wallet over a defined block range without running your own Ethereum node or managing API keys. Ideal for agents auditing wallet activity, tracking DeFi token flows, or monitoring token distribution — especially when paying per call via x402 with USDC on Base or pathUSD on Tempo is acceptable. Prefer this over raw eth_getLogs calls when you want pre-parsed, typed transfer records rather than raw log data.

## Known failure modes

- Invalid Ethereum address format returns a validation error
- Block range too large may result in timeout or truncated results
- Token contract address that is not ERC-20 returns empty transfer list
- Unsupported network value returns 400 error
- Payment failure (insufficient USDC balance) results in 402 response blocking the request
- from_block greater than to_block returns empty or error response

## How this service works

ERC20 Transfer logs via eth_getLogs - raw Transfer events for a token or wallet

## Output

Returns a JSON object with a count of matching transfers and an array of transfer records, each containing the sender address (from), recipient address (to), token contract address, transferred value (as a string integer in the token's smallest unit), the transaction hash, and the block number where the transfer occurred.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "address": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$"
      },
      "network": {
       "enum": [
        "ethereum",
        "sepolia",
        "robinhood"
       ],
       "type": "string",
       "default": "ethereum"
      },
      "contract": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$"
      },
      "to_block": {
       "oneOf": [
        {
         "type": "integer",
         "minimum": 0
        },
        {
         "enum": [
          "latest",
          "pending",
          "earliest",
          "safe",
          "finalized"
         ],
         "type": "string"
        },
        {
         "type": "string",
         "pattern": "^0[xX][a-fA-F0-9]+$"
        }
       ]
      },
      "from_block": {
       "oneOf": [
        {
         "type": "integer",
         "minimum": 0
        },
        {
         "enum": [
          "latest",
          "pending",
          "earliest",
          "safe",
          "finalized"
         ],
         "type": "string"
        },
        {
         "type": "string",
         "pattern": "^0[xX][a-fA-F0-9]+$"
        }
       ]
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "data",
      "meta"
     ],
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "logs": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "data": {
            "type": "string"
           },
           "topics": {
            "type": "array",
            "items": {
             "type": "string"
            }
           },
           "address": {
            "type": "string"
           },
           "logIndex": {
            "type": "string"
           },
           "blockNumber": {
            "type": "string"
        
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "logs": [
    {
     "data": "0x00000000000000000000000000000000000000000000000000000000000f4240",
     "topics": [
      "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
      "0x000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045",
      "0x0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f"
     ],
     "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
     "logIndex": "0x0",
     "blockNumber": "0x133da1e",
     "transactionHash": "0xad7e04119ecd85857728205f5b12e95f0bab8e99f9c2f60be5dc79cfc6a8df1f"
    }
   ],
   "count": 1,
   "to_block": "latest",
   "from_block": "latest"
  },
  "meta": {
   "endpoint": "/api/chain/erc20-transfers",
   "cost_usdc": "0.001",
   "request_id": "00000000abcdef01",
   "payment_chain": "base",
   "payment_token": "USDC"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onesource-erc-20-transfer-history-5acf567a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.onesource.io](https://www.zero.xyz/host/api.onesource.io/llms.txt)
