This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{"id":"f49c358b4572fd08","type":"tab","label":"Presentation Processing Service","disabled":false,"info":""},{"id":"764d580198897741","type":"inject","z":"f49c358b4572fd08","name":"Buy MegaConcert Ticket","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"presentation\":{\"event\":\"Mega_Concert\"}}","payloadType":"json","x":290,"y":100,"wires":[["21a21a1a48693112"]]},{"id":"44e447f634fac332","type":"debug","z":"f49c358b4572fd08","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":830,"y":100,"wires":[]},{"id":"4b4e807405b829ab","type":"http in","z":"f49c358b4572fd08","name":"eventPPS","url":"/eventPPS","method":"post","upload":false,"swaggerDoc":"","x":230,"y":260,"wires":[["d48f85ab901d192c"]]},{"id":"bed8ba713113f368","type":"debug","z":"f49c358b4572fd08","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","st |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const testJWT = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NkstUiJ9.eyJpYXQiOjE2NDI4OTI4MDcsInNjaGVtYXMiOiJ7XCIweDc5YTVkNGNmODAzMDE2MzUyNjE0YjY0Y2FiNzRlOGViMzg2YzhjMDc1NzRiOTA2YWM0NDljNThlYWZlYmUzZmJcIjp7XCIkaWRcIjpcImh0dHBzOi8vY29ycmVudGx5LmlvL3NjaGVtYXMvdGVzdC5zY2hlbWEuYXBwbGUuanNvblwiLFwidHlwZVwiOlwib2JqZWN0XCIsXCJwcm9wZXJ0aWVzXCI6e1wiY3VsdGl2YXJcIjp7XCJ0eXBlXCI6XCJzdHJpbmdcIixcInRpdGxlXCI6XCJDdWx0aXZhclwiLFwiZGVzY3JpcHRpb25cIjpcIlR5cGUgb2YgQXBwbGVcIixcImVudW1cIjpbXCJBYnJhbVwiLFwiVGFtcGxpblwiLFwiTXV0c3VcIixcIkNvbGxpbnNcIl19fSxcInJlcXVpcmVkXCI6W1wiY3VsdGl2YXJcIl19fSIsIl91cGRhdGUiOjE2NDI4OTI4MDcwMzcsImlzcyI6ImRpZDpldGhyOm1haW5uZXQ6MHg5MWI1RDU1NjNEMzgwMEMyRjVmMjAzRjI1ODc1OTJGNjMzZGFERDJGIn0.d-4uti9HJ6tooIX1Fq6fwtHtnPNKNQxfM_Ko69IQsXphIC0g2L-6iztxrxKLt9DDR07aBI_ao86HE7ovX-c3IwA'; | |
| const testCase = async function() { | |
| const Resolver = require('did-resolver').Resolver; | |
| const getResolver = require('ethr-did-resolver').getResolver; | |
| const EthrDID = require("ethr-did").EthrDID; | |
| const keypair = EthrDID.createKey |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const coriwallet = new CoriWallet("https://app.gruenstromindex.de/assets/js/deployment.json"); | |
| await coriwallet.waitInit(); | |
| console.log("Your Wallet:",coriwallet.wallet.address); | |
| // add a Meter to account | |
| await coriwallet.addTracker({ | |
| zip: '69256', | |
| ownerId: coriwallet.wallet.address, | |
| name: 'TestMeter', | |
| reading: 1234, // Initial Meter Reading in Wh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require('dotenv').config(); | |
| const axios = require('axios'); | |
| class IOMeterClient { | |
| constructor(token, secret) { | |
| this.endpoint = 'https://provider-api.prod.iometer.cloud/v1/query'; | |
| this.auth = Buffer.from(`${token}:${secret}`).toString('base64'); | |
| // Axios Instance mit vorkonfigurierten Headers | |
| this.client = axios.create({ |
OlderNewer