Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.2

Get Top Profitable Wallets by Token

GEThttps://deep-index.moralis.io/api/v2.2/erc20/:address/top-gainers

Retrieves a list of the top profitable wallets for a specific ERC20 token.

PATH PARAMS
addressstringrequired
The ERC20 token address.
QUERY PARAMS
daysstring
Timeframe in days for which profitability is calculated, can be 'all', '7d' or '30d'
chainstring
The chain to query
Responses
API KEY
import Moralis from 'moralis';

try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});

const response = await Moralis.EvmApi.token.getTopProfitableWalletPerToken({
"chain": "0x1",
"address": "0x7c9f4c87d911613fe9ca58b579f737911aad2d43"
});

console.log(response.raw);
} catch (e) {
console.error(e);
}
Response Example
{
"name": "Kylin Network",
"symbol": "KYL",
"decimals": 18,
"logo": "https://cdn.moralis.io/eth/0x67b6d479c7bb412c54e03dca8e1bc6740ce6b99c.png",
"possible_spam": true,
"result": {
"avg_buy_price_usd": "",
"avg_cost_of_quantity_sold": "",
"avg_sell_price_usd": "",
"count_of_trades": 2,
"realized_profit_percentage": 1,
"realized_profit_usd": "",
"total_sold_usd": "",
"total_tokens_bought": "",
"total_tokens_sold": "",
"total_usd_invested": "",
"address": ""
}
}