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

23 lines (22 loc) 869 B
import { RetrievedInscriptionResult } from '@kiloscribe/inscription-sdk'; export type NetworkType = 'mainnet' | 'testnet'; export interface TopicIds { jsonTopicId?: string; topicId?: string; } /** * Extract topic ids from an inscription and/or result object without using any. * - Prefers jsonTopicId when present (for CDN linking) * - Collects topic_id/topicId from either inscription or result */ export declare function extractTopicIds(inscription: RetrievedInscriptionResult | undefined, result?: unknown): TopicIds; /** * Build HRL/CDN URLs from extracted topic ids. * - HRL prefers jsonTopicId, falls back to topicId * - CDN URL only provided when jsonTopicId is present */ export declare function buildInscriptionLinks(ids: TopicIds, network: NetworkType, fileStandard?: string): { hrl?: string; cdnUrl?: string; topicId?: string; };