Get wallet profit and loss
get_wallet_pnlProfit and loss on a wallet's higher.fun coins, worked out from its own transactions on-chain, whichever app made them: SOL spent and received, average cost, realized profit on sells, and unrealized profit on what's still held, valued at what selling it all would return now. Without mints it covers the wallet's 5 largest holdings; name mints for others, or for coins it has sold out of. It reads up to 200 transactions; past that, notes say what's left out. Searching history needs an RPC that can: Solana's public RPC often times out.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"wallet": "<wallet>"
},
"name": "get_wallet_pnl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mints | No | At most 5 coins, held or sold out. Omit for the wallet's largest holdings. | |
| wallet | Yes | A Solana wallet address (base58). | |
| history | No | Also list each coin's latest 20 transactions. |