- Setting up a provider using a mnemonic seed
- Setting up a provider using a private key
- Getting the account balances
Clone the repo and install dependencies.
git clone https://github.com/republicprotocol/renex-sdk-examples
cd renex-sdk-examples
npm installCreate 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.
Use the following format to run the examples:
npm run ex0This will run example 0. ex1 will run example 1, ex2 will run example 2, etc.