Get Token Holders
Retrieve a list of all holders for a specific token, including their balances and current value in USD.
GETapi.metal.build/token/:address
List all holders
This endpoint returns a list of all addresses holding your token, along with their balances and current values.
Response attributes
- Name
id
- Type
- string
- Description
The id of the token.
- Name
address
- Type
- string
- Description
The contract address of the token.
- Name
name
- Type
- string
- Description
The name of the token.
- Name
symbol
- Type
- string
- Description
The ticker symbol of the token.
- Name
totalSupply
- Type
- string
- Description
Total token supply.
- Name
airdropSupply
- Type
- string
- Description
Available supply for airdrops.
- Name
rewardSupply
- Type
- string
- Description
Available supply for rewards.
- Name
merchantSupply
- Type
- string
- Description
The amount allocated to the merchant.
- Name
merchantAddress
- Type
- string
- Description
The address of the merchant.
- Name
price
- Type
- string
- Description
Current price of the token in USD.
- Name
feeValue
- Type
- string
- Description
Current fee value of the token in USD.
- Name
holders
- Type
- array
- Description
Array of holder objects, each containing:
{ "id": "string", "address": "string", "balance": "string", "value": "string", "feeValue": "string" }
Request
GET
api.metal.build/token/:addresscurl https://api.metal.build/token/0x1234567890abcdef1234567890abcdef12345678 \
-H "x-api-key: YOUR-API-KEY"
Response
{
"id": "0x1234567890abcdef1234567890abcdef12345678",
"address": "0x1234567890abcdef1234567890abcdef12345678",
"name": "Test Token",
"symbol": "TEST",
"totalSupply": "100000000000000000000000000",
"airdropSupply": "1000000000000000000000000",
"rewardSupply": "1000000000000000000000000",
"merchantSupply": "1000000000000000000000000",
"merchantAddress": "0x1234567890abcdef1234567890abcdef12345678",
"price": "0.015",
"feeValue": "7500",
"holders": [
{
"id": "0xabcdef1234567890abcdef1234567890abcdef12",
"address": "0xabcdef1234567890abcdef1234567890abcdef12",
"balance": "1000000000000000000000",
"value": "15.00"
},
{
"id": "0x7890abcdef1234567890abcdef1234567890abcd",
"address": "0x7890abcdef1234567890abcdef1234567890abcd",
"balance": "2000000000000000000000",
"value": "30.00"
},
{
"id": "0x3456789012345678901234567890123456789012",
"address": "0x3456789012345678901234567890123456789012",
"balance": "500000000000000000000",
"value": "7.50"
}
]
}