GET
/
insights
/
v1
/
tokens
/
erc20
/
{ownerAddress}
Get ERC-20 balances by address
curl --request GET \
  --url https://data-api.b3.fun/insights/v1/tokens/erc20/{ownerAddress}
{
  "data": [
    {
      "chain_id": 1,
      "token_address": "vitalik.eth",
      "balance": "<string>",
      "name": "<string>",
      "symbol": "<string>",
      "decimals": 123
    }
  ]
}

Path Parameters

ownerAddress
string
required
Example:

"vitalik.eth"

Query Parameters

chain
number[]
deprecated

Use chain_id instead

Example:
[20, 56, 1]
chain_id
number[]

The chain ID(s) to request the data for. You can specify multiple chain IDs, up to a maximum of 55. Use repeated query parameters, e.g., ?chain_id=20&chain_id=56. Optional, because a single chain can as well be specified as a subdomain

Example:
[20, 56, 1]
limit
integer
default:20

The number of items to return

Required range: 0 < x <= 1000
Example:

20

page
integer | null
default:0

Page number (0-indexed). Maximum value depends on query parameters: 20 for regular queries, 500 when using aggregate or group_by parameters.

Required range: x >= 0
Example:

0

metadata
enum<string>
default:false

Whether to include metadata for the tokens

Available options:
true,
false
Example:

"false"

Whether to resolve metadata IPFS or Arweave links

Available options:
true,
false
Example:

"false"

include_spam
enum<string>
default:false

Whether to include spam tokens

Available options:
true,
false
Example:

"false"

Response

200
application/json

Successful response

The response is of type object.