Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lucid/src/utils/utils.ts

Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.
Go to Latest
import * as lucid from "https://deno.land/x/lucid@0.8.6/src/utils/utils.ts";

Functions

Convert a Utf-8 encoded string to a Hex encoded string.

Splits unit into policy id, asset name (entire asset name), name (asset name without label) and label if applicable. name will be returned in Hex.

Address can be in Bech32 or Hex.

Convert a native script from Json to the Hex representation. It follows this Json format: https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md

Convert a Hex encoded string to a Utf-8 encoded string.