Connect Wallet

Learn how to integrate wallet connections into your Stacks application. Connecting a wallet authenticates users and enables blockchain interactions like transfers and contract calls.

source: Hiro blog

What you'll learn

  • Install the @stacks/connect package

  • Connect to a wallet and authenticate users

  • Manage authentication state

  • Access user account data

Prerequisites:

  • Node.js installed on your machine

  • A web application setup (React, Vue, or vanilla JS)

  • Basic understanding of async/await

Quickstart

1

Install package

Add Stacks Connect to your project:

2

Connect and authenticate

Use connect to initiate a wallet session and persist user data:

Manage authentication state in your app:

3

Access user data

Read persisted addresses and request full account details:

4

Make your first transaction

Request the wallet to broadcast a transfer:

Last updated

Was this helpful?