Getting Started with the Wallet API
Welcome to the getting started guide for the Ledger Wallet API. We are excited to have you onboard and look forward to seeing what you’ll create.
The Ledger Wallet API can be integrated with both client and server-side applications, offering you flexibility and enabling diverse use-cases.
Installation
Let’s begin by installing the base package.
You can use your favorite package manager, npm, yarn or pnpm, to install the @ledgerhq/wallet-api-client package.
npm install @ledgerhq/wallet-api-clientUsing the Wallet API with React
We offer a specific package to facilitate easy integration of the Ledger Wallet API:
@ledgerhq/wallet-api-client-react.
npm install @ledgerhq/wallet-api-client-reactThis package provides handy React hooks to interact with the Ledger Wallet API.
Testing with Simulator
To test the Ledger Wallet API without connecting to the Ledger Wallet App directly, you can use the
@ledgerhq/wallet-api-simulator package.
npm install @ledgerhq/wallet-api-simulatorRemember, this package currently only functions with server-side applications due to a dependency requiring the usage
of process.
Now that you’ve successfully installed the necessary packages, you’re ready to start crafting with Ledger’s Wallet API. In the next page, we’ll guide you through the process of setting up and configuring the Ledger Wallet API in your application.