Install Ronin Wallet SDK
Overview
This guide explains how to install the Ronin Wallet JavaScript SDK for accessing Ronin Wallet features.
Before you start
Before you install the SDK, make sure you have the following:
- Node.js version 16.17.0 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 application.
Install the Ronin Wallet SDK
From you project directory, install the SDK using yarn or npm:
yarn add @roninnetwork/wallet-sdk
npm install --save @roninnetwork/wallet-sdk
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...