Utilities
Serializers, deserializers, resolvers, and blueprints for converting between Cardano data formats.
MeshJS provides a comprehensive set of utility functions for working with Cardano data. Use these utilities to serialize scripts into addresses, deserialize on-chain data, resolve hashes, and work with smart contract blueprints.
Overview
| Utility | Purpose |
|---|---|
| Blueprints | Create and manage smart contract blueprints for spending, minting, and withdrawal validators |
| Serializers | Encode scripts and data into CBOR or bech32 format |
| Deserializers | Parse CBOR or bech32 encoded data into usable objects |
| Resolvers | Convert between different Cardano data formats (hashes, addresses, epochs) |
Quick Start
Install the MeshJS SDK to access all utility functions:
npm install @meshsdk/coreImport the utilities you need:
import {
serializePlutusScript,
deserializeAddress,
resolveDataHash,
SpendingBlueprint,
} from "@meshsdk/core";Browse Utilities
Serializers
Encode objects into CBOR or bech32 format.
Deserializers
Parse CBOR or bech32 into objects.
Resolvers
Converts between different formats.
Data
Useful utilities to parse and manipulate data
Blueprints
Blueprints for script with either apply parameters or no parameters
Related
- Data APIs - Parse and manipulate Cardano data types
- Transaction Builder - Build transactions using these utilities