get_stake_balances
Retrieve staked SOL (jupSOL) balance information for cryptocurrency portfolio tracking and staking management.
Instructions
Get the balance of staked SOL (jupSOL).
Returns a StakeBalanceResponse.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- armor_crypto_mcp/armor_mcp.py:578-592 (handler)MCP tool handler function for 'get_stake_balances' that checks authentication and delegates to ArmorWalletAPIClient.get_stake_balances()@mcp.tool() async def get_stake_balances() -> StakeBalanceResponse: """ Get the balance of staked SOL (jupSOL). Returns a StakeBalanceResponse. """ if not armor_client: return [{"error": "Not logged in"}] try: result: StakeBalanceResponse = await armor_client.get_stake_balances() return result except Exception as e: return [{"error": str(e)}]
- Pydantic model defining the response schema for stake balancesclass StakeBalanceResponse(BaseModel): total_stake_amount: float = Field(description="Total stake balance in jupSol") total_stake_amount_in_usd: float = Field(description="Total stake balance in USD")
- ArmorWalletAPIClient method implementing the API call to fetch stake balancesasync def get_stake_balances(self) -> StakeBalanceResponse: """Get the stake balances.""" return await self._api_call("GET", "frontend/wallets/stake/balance/")