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/sdkpnpm add @puzzlehq/sdkyarn add @puzzlehq/sdkYou can download the JS SDK using any of the following commands:
npm i @puzzlehq/sdk-corepnpm add @puzzlehq/sdk-coreyarn add @puzzlehq/sdk-coreClone 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.gitRun 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