ModuleSDK
Modules
computeAcceptanceTemplateId

computeAcceptanceTemplateId

Compute the template ID for a given acceptance command template index.

Usage

const templateId = await computeAcceptanceTemplateId({
  client: publicClient,
  templateIdx: 0n
})

Parameters

client

  • Type: PublicClient

The public client instance used to interact with the blockchain.

templateIdx

  • Type: bigint

The index of the acceptance command template.

Returns

templateId

  • Type: Promise<bigint>

Returns the computed template ID for the given template index.

If the contract call fails, returns 0n.