Skip to main content
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.
Very Popular
Go to Latest
import * as lucid from "https://deno.land/x/lucid@0.10.1/src/utils/utils.ts";

Functions

Returns double cbor encoded script. If script is already double cbor encoded it's returned as it is.

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.