Skip to main content
Glama

MPC Tally API Server

getAddressMetadata.ts755 B
import { GraphQLClient } from 'graphql-request'; import { GET_ADDRESS_METADATA_QUERY } from './addresses.queries.js'; import { AddressMetadataInput, AddressMetadataResponse } from './addresses.types.js'; export async function getAddressMetadata( client: GraphQLClient, input: AddressMetadataInput ): Promise<Record<string, any>> { if (!input.address) { throw new Error('Address is required'); } try { const response = await client.request( GET_ADDRESS_METADATA_QUERY, { address: input.address } ); if (!response) { throw new Error('Failed to fetch address metadata'); } return response; } catch (error) { throw new Error(`Failed to fetch address metadata: ${(error as Error).message}`); } }

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/mpc-tally-api-server'

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