Skip to main content
Glama

zetrix_crypto_get_address

Convert a Zetrix public key into its corresponding blockchain address for account operations and transaction processing.

Instructions

Get Zetrix address from public key

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
publicKeyYesThe public key

Implementation Reference

  • Handler for the zetrix_crypto_get_address tool. Extracts the publicKey argument and delegates to ZetrixEncryption.getAddressFromPublicKey method.
    case "zetrix_crypto_get_address": { if (!args) { throw new Error("Missing arguments"); } const address = await zetrixEncryption.getAddressFromPublicKey( args.publicKey as string ); return { content: [ { type: "text", text: JSON.stringify({ address }, null, 2), }, ], }; }
  • src/index.ts:550-563 (registration)
    Tool registration entry including name, description, and input schema.
    { name: "zetrix_crypto_get_address", description: "Get Zetrix address from public key", inputSchema: { type: "object", properties: { publicKey: { type: "string", description: "The public key", }, }, required: ["publicKey"], }, },
  • Core helper method in ZetrixEncryption class that computes the Zetrix address from a given public key using the official zetrix-encryption-nodejs library.
    async getAddressFromPublicKey(publicKey: string): Promise<string> { await this.initEncryption(); try { return this.KeyPair.getAddress(publicKey); } catch (error) { throw new Error( `Failed to derive address: ${error instanceof Error ? error.message : String(error)}` ); } }
  • Input schema definition specifying the required publicKey parameter.
    inputSchema: { type: "object", properties: { publicKey: { type: "string", description: "The public key", }, }, required: ["publicKey"], },

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/Zetrix-Chain/zetrix-mcp-server'

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