Skip to main content
Version: Next

sdk.core.policyidtohash

Home > @blaze-cardano/sdk > Core > PolicyIdToHash

Core.PolicyIdToHash() function

Converts a PolicyId to a Hash28ByteBase16 format.

Signature:

declare function PolicyIdToHash(policy: PolicyId): Hash28ByteBase16;

Parameters

Parameter

Type

Description

policy

PolicyId

The policy ID to be converted.

Returns:

Hash28ByteBase16

{Hash28ByteBase16} The converted hash in Hash28ByteBase16 format.