unarchive_wallets
Restore archived cryptocurrency wallets to active status for wallet management operations. This tool accepts a list of wallet names and returns their unarchive status, enabling reactivation of previously archived wallets.
Instructions
Unarchive wallets.
Expects a list of wallet names, returns a list of WalletArchiveOrUnarchiveResponse.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unarchive_wallet_requests | Yes |
Implementation Reference
- armor_crypto_mcp/armor_mcp.py:306-320 (handler)MCP tool handler for 'unarchive_wallets'. This is the main execution function registered via @mcp.tool(), handling the tool call by delegating to the ArmorWalletAPIClient.@mcp.tool() async def unarchive_wallets(unarchive_wallet_requests: UnarchiveWalletRequestContainer) -> List[WalletArchiveOrUnarchiveResponse]: """ Unarchive wallets. Expects a list of wallet names, returns a list of WalletArchiveOrUnarchiveResponse. """ if not armor_client: return [{"error": "Not logged in"}] try: result: List[WalletArchiveOrUnarchiveResponse] = await armor_client.unarchive_wallets(unarchive_wallet_requests) return result except Exception as e: return [{"error": str(e)}]
- Pydantic model defining the input schema for a single unarchive wallet request.class UnarchiveWalletsRequest(BaseModel): wallet: str = Field(description="Name of the wallet to unarchive")
- Pydantic model for container holding a list of UnarchiveWalletsRequest, used as input to the MCP handler.class UnarchiveWalletRequestContainer(BaseModel): unarchive_wallet_requests: List[UnarchiveWalletsRequest]
- Implementation in ArmorWalletAPIClient that performs the HTTP POST to '/wallets/unarchive/' API endpoint to unarchive wallets.async def unarchive_wallets(self, data: UnarchiveWalletsRequest) -> List[WalletArchiveOrUnarchiveResponse]: """Unarchive the wallets specified in the list.""" # payload = json.dumps([{"wallet": wallet_name} for wallet_name in data.wallet_names]) payload = data.model_dump(exclude_none=True)['unarchive_wallet_requests'] return await self._api_call("POST", "wallets/unarchive/", payload)
- armor_crypto_mcp/armor_mcp.py:306-306 (registration)@mcp.tool() decorator registers the unarchive_wallets function as an MCP tool.@mcp.tool()