Credit Cost
TBD
Supported Chains
BASE_MAINNETBSC_MAINNETETH_MAINNETGNOSIS_MAINNETMEGAETH_MAINNETOPTIMISM_MAINNETPOLYGON_MAINNET
This query is currently in Beta. It is stable for testing and evaluation but may undergo changes in schema or behavior as we continue to improve it. No API credits are currently charged.We welcome your feedback so please reach out to us directly to report issues or request features.
Parameters
Chain name to filter events (e.g.,
BASE_MAINNET, ETH_MAINNET, BSC_MAINNET)Available values: BASE_MAINNET, BSC_MAINNET, ETH_MAINNET, GNOSIS_MAINNET, OPTIMISM_MAINNET, POLYGON_MAINNET, SOLANA_MAINNETThe wallet address to query
Query
You can query theupnlForWallet endpoint to retrieve detailed PnL metrics for a wallet.
Basic Query
Complete Query
Response Format
Here’s an example of the response data structure:Field Descriptions
Token contract address (lowercase, 0x-prefixed)
Average cost basis per token in USD
Current market price per token in USD
Realized PnL in USD from completed trades
Unrealized PnL in USD at the latest price
Net token movement (inflow minus outflow, past 7 days)
Estimated market capitalization in USD
Token contract metadata