UNPKG

kiban-agent-kit

Version:

Open-source framework connecting AI agents to Katana ecosystem protocols

52 lines (51 loc) 1.3 kB
import { KibanAgentKit } from "../../agent/KibanAgentKit"; export interface WalletInfo { address: string; balance: string; chain: { name: string; id: number; nativeCurrency: { name: string; symbol: string; decimals: number; }; }; message: string; } export interface TransactionHistory { message: string; transactionCount?: number; viewOnEtherscan?: string; transactions?: any[]; } export interface GasEstimate { currentGasPrice: string; estimatedBaseFee: string; transactionDetails?: { gasUnits: string; estimatedCostWei: string; estimatedCostEth: string; message: string; error?: string; }; } /** * Core wallet service for wallet-related operations */ export declare class WalletService { private agent; constructor(agent: KibanAgentKit); /** * Get information about the connected wallet */ getWalletInfo(): Promise<WalletInfo>; /** * Get transaction history for the connected wallet */ getTransactionHistory(limit?: number): Promise<TransactionHistory>; /** * Estimate gas prices and transaction costs */ estimateGas(to?: string, value?: string): Promise<GasEstimate>; }