Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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 balances
    class 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 balances
    async def get_stake_balances(self) -> StakeBalanceResponse:
        """Get the stake balances."""
        return await self._api_call("GET", "frontend/wallets/stake/balance/")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/emmaThompson07/armor-crypto-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server