Skip to main content
Glama

checkWalletExists

Verify if a wallet exists on an Ethereum network by specifying a provider like a network name or custom RPC URL. Use to validate wallet presence before transactions or queries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
providerNoOptional. Either a network name or custom RPC URL. Use getAllNetworks to see available networks and their details, or getNetwork to get info about a specific network. You can use any network name returned by these tools as a provider value.

Implementation Reference

  • Full tool definition including registration, schema, and handler. The handler calls ethersService.getWalletInfo(provider) to check wallet existence and returns the info as JSON or error.
    server.tool( "checkWalletExists", { provider: z.string().optional().describe(PROVIDER_DESCRIPTION) }, async ({ provider }) => { try { const walletInfo = await ethersService.getWalletInfo(provider); return { content: [{ type: "text", text: JSON.stringify(walletInfo, null, 2) }] }; } catch (error) { return { isError: true, content: [{ type: "text", text: `Error checking wallet: ${error instanceof Error ? error.message : String(error)}` }] }; } }

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/crazyrabbitLTC/mcp-ethers-server'

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