Getting Started
The Puzzle SDK provides React hooks that enable interaction between a privacy dApp and the Puzzle Wallet. There is also a pure JS sdk for devs who don’t want to use React.
Downloading the wallet
You can download the wallet on the chrome store, or on the App Store for iOS.
Downloading the sdk
You can download the React SDK using any of the following commands:
npm i @puzzlehq/sdk
pnpm add @puzzlehq/sdk
yarn add @puzzlehq/sdk
You can download the JS SDK using any of the following commands:
npm i @puzzlehq/sdk-core
pnpm add @puzzlehq/sdk-core
yarn add @puzzlehq/sdk-core
Clone a sample repo
We’ve built a few sample repos for your choice of a nice starting point:
You can clone the repo using the following command:
# clone the aleo-starter repogit clone https://github.com/puzzlehq/build-a-token.git
Run the sample-dApp application
# change directory into the projectcd build-a-token# run the dev servernpm run dev
# change directory into the projectcd build-a-token# run the dev serverpnpm dev
# change directory into the projectcd build-a-token# run the dev serveryarn dev