Skip to content
No description, website, or topics provided.
C++ Java Objective-C++ CMake Ruby Objective-C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Elastos Unity [wallet]

The Elastos Unity wallet repository provides all the necessary code to port the wallet functionnalities to React Native. Developers can use the Elastos Unity wallet module to implement the Elastos wallet functionalities into their app. Elastos Wallet is used to manage private and public keys and to make transactions on the Elastos network, including DID sidechain.

Getting started

Due to the size limitation of, the Elastos Unity wallet module is actually available via git install from the npm command: $ npm install github:cyber-republic/elastos-unity-wallet --save

Mostly automatic installation

$ react-native link elastos-unity-wallet

Then, for only Android, it needs to follow the following Manual Installation Android Step 4.

Manual installation


  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-elastos-wallet-core and add RNElastosMainchain.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNElastosMainchain.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)


  1. Open up android/app/src/main/java/[...]/
  • Add import org.elastos.mainchain.reactnative.RNElastosMainchainPackage; to the imports at the top of the file
  • Add new RNElastosMainchainPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-elastos-wallet-core'
    project(':react-native-elastos-wallet-core').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-elastos-wallet-core/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
    implementation project(':react-native-elastos-wallet-core')
  3. Insert the following lines inside the android block in android/app/build.gradle:
    packagingOptions {
        pickFirst '**/'


import RNElastosMainchain from 'react-native-elastos-wallet-core';

// Generate a new mnemonic (defaults to English)
RNElastosMainchain.generateMnemonic((err, mnemonic) => {

The complete documentation is available on:

You can’t perform that action at this time.