devion-mcp-server
Version:
MCP server for Devion blockchain infrastructure - AI-native blockchain data access for developers and AI agents
93 lines • 2.46 kB
TypeScript
export interface McpTool {
name: string;
description: string;
inputSchema: {
type: 'object';
properties: Record<string, any>;
required?: string[];
};
handler: (args: any) => Promise<any>;
}
export interface DevionMcpResponse<T = any> {
success: boolean;
data?: T;
error?: string;
details?: Record<string, any>;
}
export interface BalanceData {
address: string;
network: string;
balance: string | number;
balance_formatted?: string;
balance_wei?: string;
block_number: number;
currency: string;
estimated_usd_value?: number;
price_note?: string;
timestamp: string;
}
export interface TransactionData {
hash: string;
from: string;
to: string | null;
value: string;
value_eth: string;
gas: number;
gas_price?: number;
max_fee_per_gas?: number;
max_priority_fee_per_gas?: number;
nonce: number;
block_number?: number;
block_hash?: string;
transaction_index?: number;
input: string;
type: number;
}
export interface TransactionReceipt {
status: 'success' | 'failed';
gas_used: number;
cumulative_gas_used: number;
effective_gas_price?: number;
logs: any[];
logs_count: number;
}
export interface BlockData {
number: number;
hash: string;
parent_hash: string;
timestamp: number;
timestamp_formatted: string;
gas_limit: number;
gas_used: number;
gas_utilization: number;
transaction_count: number;
miner?: string;
difficulty?: string;
total_difficulty?: string;
}
export interface GasPriceData {
network: string;
gas_price_wei: number;
gas_price_gwei: number;
gas_price_formatted: string;
block_number: number;
timestamp: string;
}
export interface MultiChainBalance {
network: string;
balance: string;
balance_formatted: string;
currency: string;
block_number: number;
estimated_usd_value?: number | undefined;
}
export interface NetworkComparison {
network: string;
gas_price_gwei: number;
estimated_cost_usd: number;
estimated_time_seconds: number;
relative_cost: 'cheapest' | 'moderate' | 'expensive';
}
export declare const SUPPORTED_NETWORKS: readonly ["ethereum-mainnet", "base-mainnet", "arbitrum-mainnet", "polygon-mainnet", "base-sepolia", "arbitrum-sepolia"];
export type SupportedNetwork = typeof SUPPORTED_NETWORKS[number];
//# sourceMappingURL=types.d.ts.map