Skip to main content

Install Ronin Wallet SDK

Overview

This guide explains how to install the Ronin Wallet JavaScript SDK for accessing Ronin Wallet features.

Prerequisites

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

  1. In your project's script, import the SDK:
import { WalletSDK } from "@roninnetwork/wallet-sdk"
  1. 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