Skip to main content
Glama

Hashkey MCP Server

Official
by HashkeyHSK
index.ts•863 B
import type { Chain } from 'viem'; import { hashkey, hashkeyTestnet } from 'viem/chains'; import { chainIdToChain } from '../../chains.js'; export function constructBaseScanUrl( chain: Chain, transactionHash: `0x${string}`, ) { if (chain.id === hashkey.id) { return `https://hashkey.blockscout.com/tx/${transactionHash}`; } if (chain.id === hashkeyTestnet.id) { return `https://hashkeychain-testnet-explorer.alt.technology/tx/${transactionHash}`; } } export const checkToolSupportsChain = ({ chainId, supportedChains, }: { chainId: number | undefined; supportedChains: Chain[]; }) => { if (supportedChains.some((chain) => chain.id === chainId)) { return true; } const chainName = chainId ? (chainIdToChain(chainId)?.name ?? `chain ${chainId}`) : 'chain'; throw new Error(`Not implemented on ${chainName}`); };

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/HashkeyHSK/hsk-mcp'

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