@hashgraphonline/hedera-agent-kit
Version:
Build LLM-powered applications that interact with the Hedera Network. Create conversational agents that can understand user requests in natural language and execute Hedera transactions, or build backend systems that leverage AI for on-chain operations.
12 lines (10 loc) • 623 B
TypeScript
import { Logger as StandardsSdkLogger } from '@hashgraphonline/standards-sdk';
import { CustomFee } from '@hashgraph/sdk';
/**
* Parses a JSON string representing an array of custom fee objects into an array of SDK CustomFee instances.
* @param {string} customFeesJson - The JSON string to parse.
* @param {StandardsSdkLogger} logger - Logger instance for error/warning logging.
* @returns {CustomFee[]} An array of SDK CustomFee objects.
* @throws {Error} If JSON parsing fails or fee data is invalid.
*/
export declare function parseCustomFeesJson(customFeesJson: string, logger: StandardsSdkLogger): CustomFee[];