npm install
In the HelloWorld.vue
file (around line 107), add your channel API keys to the API functions. Then, around line 154, add your API keys to the pollData()
function.
iotapp.getPrivateChain("myOz8FZXhT4lBzJplmXtUbneP8eeXpSp","3imNnMduakmu6JmFafIxnu8WJj28BjQI")
iotapp.getLatestTx("myOz8FZXhT4lBzJplmXtUbneP8eeXpSp","3imNnMduakmu6JmFafIxnu8WJj28BjQI")
pollData() {
this.polling = setInterval(() => {
iotapp.getLatestTx("myOz8FZXhT4lBzJplmXtUbneP8eeXpSp", "3imNnMduakmu6JmFafIxnu8WJj28BjQI")
.then((data) => (this.latestData = data))
.catch((err) => console.log("Error occurred:", err));
}, 2000);
},
npm run serve
npm run build
npm run lint