Install Ronin Wallet SDK
Overview
This guide explains how to install the Ronin Wallet JavaScript SDK for accessing Ronin Wallet features.
Prerequisites
- Node.js v18.16 or later.
- npm or yarn for package installation.
- A JavaScript project. To create a new project, you can use create-react-app or create-next-app. This guide uses a Next.js app.
Steps
Step 1. Install the SDK
From you project directory, install the SDK using yarn or npm:
yarn add @roninnetwork/wallet-sdk
npm install --save @roninnetwork/wallet-sdk
Step 2. Initialize the SDK
- In your project's script, import the SDK:
import { WalletSDK } from "@roninnetwork/wallet-sdk"
- Create a new
WalletSDK
instance:
const walletSdk = new WalletSDK(options)
Congratulations, you successfully imported and created a Ronin Wallet SDK instance.
For a full list of options, see Ronin Wallet JS SDK.
Next steps
Was this helpful?
Happy React is loading...