Reference
Core
Overview

Core

The core package micro-stacks is a collection of many different sub-modules which all serve different purposes.

Installation

pnpm i 

micro-stacks

While there is a single package to install, each module within micro-stacks can be safely imported without polluting your application with code from other modules. This allows for very high levels of tree-shakeability.

Modules

Clarity

The micro-stacks/clarity module includes all the code required to interact with Clarity in a JavaScript environment. This includes things like parsing and constructing Clarity Values.

import { uintCV } from 'micro-stacks/clarity';

const clarityValue = uintCV('10');

Common

This module exports helpful utilities that many of the other modules make use of.

Connect

micro-stacks/connect is the module that handles all communication between a given application and any Stacks based wallet. This included functionality around authentication and signing transactions.

Crypto

As the name implies, this module handles all of the crypto related functionality.

Network

micro-stacks/network handles anything to do with constructing network objects related to Stacks.

Storage

This module is how you would interact with Gaia. It allows for you to safely store your users data encrypted.

Transactions

This module deals with constructing Stacks Transactions that then can be signed by a given wallet.