Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.cultura.xyz/llms.txt

Use this file to discover all available pages before exploring further.

getDigitalAssetUID(digitalAssetAddress, digitalAssetId): `0x${string}`
Generate a unique identifier for a digital asset

Parameters

digitalAssetAddress

`0x${string}` The address of the digital asset contract

digitalAssetId

bigint The token ID of the digital asset

Returns

`0x${string}` The unique identifier for the digital asset

Example

import { getDigitalAssetUID } from '@cultura/sdk/utils'

// Generate the UID for digital asset
const id = getDigitalAssetUID(
  "0x1234567890abcdef1234567890abcdef12345678",
  "42"
)