UNPKG

nano-mcp

Version:

NANO MCP (Nano Cryptocurrency) Server for AI Assistants - A JSON-RPC 2.0 API server for Nano cryptocurrency operations with QR code generation, local work generation and auto-receive pending blocks

25 lines (24 loc) 1.1 kB
import { ConfigValidationResult } from '../types/config'; import { AccountInfo, Block, PendingBlocks } from '../types/nano'; export declare class NanoTransactions { private apiUrl; private rpcKey; private gpuKey; private defaultRepresentative; private config; constructor(customConfig?: Partial<{ apiUrl: string; rpcKey: string; gpuKey: string; defaultRepresentative: string; }>, config?: any); private rpcCall; validateConfig(errors: string[]): Promise<ConfigValidationResult>; generateWork(hash: string): Promise<string>; getAccountInfo(account: string): Promise<AccountInfo>; getPendingBlocks(account: string): Promise<PendingBlocks>; createOpenBlock(address: string, privateKey: string, sourceBlock: string, sourceAmount: string): Promise<Block>; createSendBlock(fromAddress: string, privateKey: string, toAddress: string, amount: string, accountInfo: AccountInfo): Promise<Block>; receiveAllPending(address: string, privateKey: string): Promise<Block[]>; private makeRequest; }