getOnchainIdentifier
Returns the on-chain identifier generated internally. This identifier is appended to the data
field of transactions to enable on-chain tracking.
Usage
_10import { protocolKit } from './setup.ts'_10_10const onchainIdentifier = await protocolKit.getOnchainIdentifier()_10_10console.log(onchainIdentifier) // e.g., '5afe006562303761323539616336346466346135306537646561393238383963'
Returns
string
The on-chain identifier in hexadecimal format (5afe00...
), which includes hashed metadata such as project name, platform, tool, and tool version.
For more details about the identifier format, please refer to the On-chain identifier section.