@fairmint/canton-node-sdk
Version:
Canton Node SDK
12 lines • 915 B
TypeScript
import type { SubmitAndWaitForTransactionTreeResponse } from '../../clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree';
import type { CreatedTreeEvent } from '../../clients/ledger-json-api/schemas/api/events';
/**
* Finds a CreatedTreeEvent for a given template name from a transaction tree response. The template name search
* excludes the templateId prefix and matches the template name portion.
*
* @param response - The SubmitAndWaitForTransactionTreeResponse containing the transaction tree
* @param templateName - The template name to search for (e.g., "Splice.Amulet:FeaturedAppActivityMarker")
* @returns The CreatedTreeEvent if found, undefined otherwise
*/
export declare function findCreatedEventByTemplateName(response: SubmitAndWaitForTransactionTreeResponse, templateName: string): CreatedTreeEvent | undefined;
//# sourceMappingURL=find-created-event.d.ts.map