What this endpoint does
With this API, you can:- Get a crypto wallet balance for a specific token
- Retrieve detailed wallet position data
- Analyze buy and sell history for a wallet
- Calculate realized and unrealized PnL
- Access enriched token market data
What you’ll need
- Basic knowledge of REST APIs
- A wallet address (EVM or Solana)
- A token (asset) address
- The blockchain where the token exists (Ethereum, Solana, Base, etc.)
- DexScreener (to discover tokens and active wallets)
When to use Get Wallet Position
Use this endpoint when you want to:- Get wallet balance for a specific token
- Analyze wallet trading performance
- Track wallet PnL over time
- Build wallet analytics or trader profiling tools
- Display token-level wallet data in dashboards
Walkthrough — Get Wallet Balance for a Token
1. Prepare your query
The wallet/position endpoint requires three parameters:| Parameter | Description |
|---|---|
asset | Token contract address |
blockchain | Blockchain name or ID |
wallet | Wallet address to analyze |
2. Find a token (asset address)
To get a valid token address:- Open DexScreener
- Search for the token you want to analyze
- Copy the token contract address shown on the token page
asset parameter.
3. Identify the blockchain
Still on DexScreener:- Check which blockchain the token is deployed on (e.g. Solana, Ethereum, Base)
blockchain parameter.
4. Find a wallet address
To retrieve real wallet data:- Open the Top Traders section on DexScreener
- Select an active wallet
- Open it in the blockchain explorer
- Copy the wallet address
wallet parameter.
Execute the API Call
Using cURL
Using the Mobula SDK
Review the wallet data response
The response returns detailed wallet data, including:- Token metadata and pricing
- Token balance (raw and formatted)
- Wallet value in USD
- Buy and sell counts
- Trading volumes
- Average buy and sell prices
- Realized PnL
- Unrealized PnL
- Total wallet profit and loss
- First and last interaction timestamps
Try It Live with Mobula Wallet Position Demo (UI)
You can also test the Get Wallet Position endpoint using our open-source Wallet Position UI demo. This lightweight application uses Mobula cURL requests under the hood to fetch wallet balance, wallet data, and PnL for a specific token and blockchain, allowing you to validate parameters before integrating the API into your own application. Try it HereSummary
The Get Wallet Position endpoint lets you go beyond basic wallet balances by providing token-level wallet data, trading history, and PnL. If you’re building tools that require:- Accurate wallet balance tracking
- Token-specific wallet analytics
- Advanced on-chain wallet insights