Skip to main content
Glama
account.ts818 B
import { CotiNetwork } from "@coti-io/coti-ethers"; export interface AccountKeys { privateKey: string; aesKey: string; } /** * Masks a sensitive string by showing only the first 4 and last 4 characters * @param str The string to mask * @returns The masked string */ export function maskSensitiveString(str: string): string { if (!str || str.length <= 8) { return "****"; } return `${str.substring(0, 4)}...${str.substring(str.length - 4)}`; } /** * Converts network string to CotiNetwork enum * @param network The network string ('testnet' or 'mainnet') * @returns The COTI network enum value */ export function getNetwork(network: 'testnet' | 'mainnet'): CotiNetwork { if (network === 'mainnet') { return CotiNetwork.Mainnet; } return CotiNetwork.Testnet; }

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/davibauer/coti-mcp'

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