kopanitsa / web3-arduino

an Arduino (or ESP32) library to use web3 on Ethereum platform.
MIT License
105 stars 45 forks source link

Compatibility of test net? #2

Closed fkramer90 closed 6 years ago

fkramer90 commented 6 years ago

Is it only compatible with the main network or can I also work with rinkeby? i have already read that it is difficult to access rinkeby with the standard web3 package.

kopanitsa commented 6 years ago

Sorry for late. Yes, you can use for Rinkeby. Please refer below https://github.com/kopanitsa/web3-arduino/blob/master/example/basic_web3/basic_web3.ino

If you use set url like below, app will be connected to Rinkeby chain.

#define INFURA_HOST "rinkeby.infura.io"
#define INFURA_PATH "/<YOUR_INFURA_ID>"