Utilities

Kuber Playground provides the following utilities to help you with your Cardano dApp development.

Compose/Decompose Address

You can compose and decompose address using the utility provided in Kuber Playground. In the right side of the screen, you will find this utility in the uppermost tab named Address. The ↑↓ button will toggle between compose and decompose address. You will need address to decompose to its Payment Credential(Key Hash) and Stake Credential(Key Hash). To compose an address, you will need Payment Credential(Key Hash/Script Hash), Stake Credential(Key Hash/Script Hash) - optional and select network.

Generate Policy ID from Script

You can generate Policy ID from a script using the utility provided in Kuber Playground. In the right side of the screen, you will find this utility in the second upper tab named ScriptHash. Examples

For generating Script Policy ID from a Plutus script, you will need to provide the script in JSON format containing of the following fields:

{
"cborHex": "YourCborHex",
"description": "",
"type": "PlutusScriptV1 | PlutusScriptV2"
}

For generating Script Policy ID from a signature script, you will need to provide the script in JSON format containing of the following fields:

{
"type": "sig",
"keyHash": "YourKeyHash"
}

For generating Script Policy ID from a TimeLock Policy script, you will need to provide the script in JSON format containing of the following fields:

{
"type": "before | after",
"slot": "YourSlot"
}

Encode/Decode Hex

You can encode and decode Hex using the utility provided in Kuber Playground. In the right side of the screen, you will find this utility in the third upper tab named Hex. You will need Hex to decode to its original data and to encode data to Hex.

© 2023 Kuberide. All Rights Reserved.

Built withfrom 🇳🇵