Skip to content

republicprotocol/renex-sdk-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Examples for RenEx SDK

List of Examples

  1. Setting up a provider using a mnemonic seed
  2. Setting up a provider using a private key
  3. Getting the account balances

Setup

Clone the repo and install dependencies.

git clone https://github.com/republicprotocol/renex-sdk-examples
cd renex-sdk-examples
npm install

Create a .env file in the root of the folder with the following contents:

export INFURA_KEY="your infura api key";
export MNEMONIC="your mnemonic seed phrase";
export PRIVATE_KEY="your wallet private key";

Running the examples will require MNEMONIC and/or PRIVATE_KEY to be defined in the environment variables.

Running the examples

Use the following format to run the examples:

npm run ex0

This will run example 0. ex1 will run example 1, ex2 will run example 2, etc.

About

Cloneable examples for RenEx SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published