Protocol Kit Reference
On-chain Tracking
getOnchainIdentifier

getOnchainIdentifier

Returns the on-chain identifier generated internally. This identifier is appended to the data field of transactions to enable on-chain tracking.

Usage


_10
import { protocolKit } from './setup.ts'
_10
_10
const onchainIdentifier = await protocolKit.getOnchainIdentifier()
_10
_10
console.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.

Was this page helpful?