Filter Wallets (Token Stats)

Shows token-specific performance stats per wallet

ℹ️

This endpoint is available on Codex Growth and Enterprise Plans

Endpoint: filterTokenWallets

This endpoint is used to discover wallets based on their interactions with tokens. You can apply filters like volume, swap count, PnL, and holding patterns, and optionally focus on a specific token or wallet. It also supports label-based filtering, phrase search by token name/symbol, and network-specific queries.

Note: This endpoint focuses on swap events. If you see balance discrepancies due to other types of token events (such as burns), we recommend using [balances](https://docs.codex.io/reference/balances) for udpated token balances.

Method: POST

Arguments

NameTypeDescription
inputFilterTokenWalletsInput!

Required

NameTypeDescription
excludeLabels[String]

Exclude wallets with these labels.

filtersV2WalletTokenFiltersV2

A set of filters to apply

includeLabels[String]

Include wallets with these labels.

limitInt

The maximum number of wallets to return

networkIdInt

The network ID to filter wallets for

offsetInt

Where in the list the server should start when returning items

phraseString

A phrase to search for in token symbol and name

rankings[WalletTokenRanking]

A list of ranking attributes to apply

tokenIdString

The ID of the token to filter wallets for

wallets[String]

A list of wallet addresses to filter wallets for

Response

NameTypeDescription
countInt!The number of wallets returned.
offsetInt!Where in the list the server started when returning items.
results

[TokenWalletFilterResult!]

!

The list of wallets matching the filter parameters.

NameTypeDescription
addressString!The wallet address
amountBoughtUsd1dString!Amount bought in USD in the past day
amountBoughtUsd1wString!Amount bought in USD in the past week
amountBoughtUsd1yString!Amount bought in USD in the past year
amountBoughtUsd30dString!Amount bought in USD in the past 30 days
amountSoldUsd1dString!Amount sold in USD in the past day
amountSoldUsd1wString!Amount sold in USD in the past week
amountSoldUsd1yString!Amount sold in USD in the past year
amountSoldUsd30dString!Amount sold in USD in the past 30 days
amountSoldUsdAll1dString!Amount sold USD all in the past day
amountSoldUsdAll1wString!Amount sold USD all in the past week
amountSoldUsdAll1yString!Amount sold USD all in the past year
amountSoldUsdAll30dString!Amount sold USD all in the past 30 days
botScoreIntThe bot score for the wallet.
buys1dInt!Number of buys in the past day
buys1wInt!Number of buys in the past week
buys1yInt!Number of buys in the past year
buys30dInt!Number of buys in the past 30 days
firstTransactionAtIntThe unix timestamp for the first transaction from this wallet
labels

[String!]

!

The labels associated with the wallet
lastTransactionAtInt!The unix timestamp for the last transaction from this wallet
networkIdInt!The network ID
purchasedTokenBalanceString!The purchased token balance
realizedProfitPercentage1dFloat!Realized profit percentage in the past day
realizedProfitPercentage1wFloat!Realized profit percentage in the past week
realizedProfitPercentage1yFloat!Realized profit percentage in the past year
realizedProfitPercentage30dFloat!Realized profit percentage in the past 30 days
realizedProfitUsd1dString!Realized profit in USD in the past day
realizedProfitUsd1wString!Realized profit in USD in the past week
realizedProfitUsd1yString!Realized profit in USD in the past year
realizedProfitUsd30dString!Realized profit in USD in the past 30 days
scammerScoreIntThe scammer score for the wallet.
sells1dInt!Number of sells in the past day
sells1wInt!Number of sells in the past week
sells1yInt!Number of sells in the past year
sells30dInt!Number of sells in the past 30 days
sellsAll1dInt!Number of sells all in the past day
sellsAll1wInt!Number of sells all in the past week
sellsAll1yInt!Number of sells all in the past year
sellsAll30dInt!Number of sells all in the past 30 days
tokenEnhancedToken!The token metadata
tokenAcquisitionCostUsdString!The token acquisition cost in USD
tokenAddressString!The token address
tokenAmountBought1dString!Token amount bought in the past day
tokenAmountBought1wString!Token amount bought in the past week
tokenAmountBought1yString!Token amount bought in the past year
tokenAmountBought30dString!Token amount bought in the past 30 days
tokenAmountSold1dString!Token amount sold in the past day
tokenAmountSold1wString!Token amount sold in the past week
tokenAmountSold1yString!Token amount sold in the past year
tokenAmountSold30dString!Token amount sold in the past 30 days
tokenAmountSoldAll1dString!Token amount sold all in the past day
tokenAmountSoldAll1wString!Token amount sold all in the past week
tokenAmountSoldAll1yString!Token amount sold all in the past year
tokenAmountSoldAll30dString!Token amount sold all in the past 30 days
tokenBalanceString!The current token balance

Explore

Currently available wallet labels:

Wallet LabelDescription
SNIPERProfits $3k+ from tokens bought within 1 hour of launch
SMART_TRADER_TOKENS_UNDER_TWO_DAYS_OLD (Early Bird)Profits $5k+ from tokens 1 hour to 2 days old
SMART_TRADER_TOKENS_OVER_TWO_DAYS_OLD (Second Wave)Profits $7.5k+ from established tokens (2+ days old)
INTERESTINGREDACTED
WEALTHYWallet holds $1M+ in assets
MEDIUM_WEALTHYWallet holds $5M+ in assets
MEGA_WEALTHYWallet holds $10M+ in assets

Note: Most wallets have not yet been checked in order to be assigned a scammerScore value. Scammer score (or risk score) is assigned on a scale of 0-100, with 0 being most legitimate, and 100 being most likely a scammer. Similarly, botScore will assign a value based on the likelihood of the wallet being a bot.

👋

Ask questions, share what you're working on and request new features 👬👭