Overview

source: Hiro blog

Overview

Stacks.js is a collection of JavaScript libraries that enable you to build web applications on the Stacks blockchain. From wallet authentication to smart contract interactions.

Key features

  • Transaction construction - Build and broadcast all transaction types with type-safe APIs

  • Smart contract interaction - Deploy contracts and call functions with automatic encoding

  • Wallet integration - Connect to Leather, Xverse, and other Stacks wallets seamlessly

  • Post-conditions - Protect users with built-in asset transfer validations

Installation

Stacks.js is separated into focused packages published under the @stacks scope. Install only what you need:

terminal
npm install @stacks/transactions

Other available packages include:

  • @stacks/api

  • @stacks/auth

  • @stacks/encryption

  • @stacks/network

  • @stacks/stacking

  • @stacks/transactions

  • @stacks/bns

  • @stacks/common

  • @stacks/profile

  • @stacks/storage

  • @stacks/wallet-sdk

Need help building with Stacks.js?

Reach out to us on the #stacks-js channel on Discord under the Developer Tools section.

Last updated

Was this helpful?