UNPKG

@hashgraphonline/standards-agent-kit

Version:

A modular SDK for building on-chain autonomous agents using Hashgraph Online Standards, including HCS-10 for agent discovery and communication. https://hol.org

19 lines (18 loc) 603 B
import { Client } from '@hashgraph/sdk'; import { HCS10Message } from '../hcs10/types'; /** * Creates and returns a Hedera Client based on environment variables. */ export declare function createHederaClient(): Client; /** * HederaClient class for handling HCS-10 operations */ export declare class HederaClient { private client; constructor(client: Client); /** * Subscribe to messages from a topic * TODO: Update to use a mirror node */ subscribeToTopic(topicId: string, onMessage: (message: HCS10Message) => void, onError: (error: Error) => void): Promise<void>; }