Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.codex.io/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint requires a Growth or Enterprise plan. Learn more.

Returns

DetailedWalletStats
DetailedWalletStats
See DetailedWalletStats

Arguments

input
DetailedWalletStatsInput!
required
See DetailedWalletStatsInput

Example

Test this query in the Explorer →
{
  detailedWalletStats(
    input: { walletAddress: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045" }
  ) {
    walletAddress
    lastTransactionAt
    labels
    scammerScore
    botScore
    statsDay30 {
      statsUsd {
        volumeUsd
        realizedProfitUsd
        realizedProfitPercentage
        averageProfitUsdPerTrade
      }
      statsNonCurrency {
        swaps
        uniqueTokens
        wins
        losses
      }
    }
    networkBreakdown {
      networkId
      nativeTokenBalance
    }
    wallet {
      address
      firstFunding {
        fundedByAddress
        fundedAt
      }
    }
  }
}

Usage Guidelines

  • Query using input: { walletAddress } with a wallet address from any supported network
  • Stats are available in multiple time windows: statsDay1, statsWeek1, statsDay30, statsYear1
  • statsUsd contains USD-denominated metrics (volume, profit, averages)
  • statsNonCurrency contains count metrics (swaps, unique tokens, wins/losses)
  • networkBreakdown shows per-network stats and native token balances
  • Use wallet.firstFunding to see where initial funds came from

Troubleshooting Tips

realizedProfitPercentage is the profit as a percentage of the cost basis for tokens sold during the time window. A value of 0.5 means 50% profit on tokens sold.
A “win” is a trade where the wallet sold tokens for more than they paid. A “loss” is a trade where they sold for less. These counts help assess trading skill independent of dollar amounts.
Labels categorize wallets by behavior patterns (e.g., “smart_money”, “bot”, “sniper”). Use these to quickly identify wallet types without analyzing all stats.
networkBreakdown only includes networks where the wallet has had trading activity on tracked DEXs. A wallet with only transfers or holdings won’t appear in the breakdown.
firstFunding shows the first wallet that funded this address and when. This helps trace wallet origins and identify potential wallet clusters or funding patterns.
  • Wallets: Analyze wallet performance, discover top traders, and build portfolio views