subspace/test/test7.js
Richard Ramos 4232fc3231
fix: change output from webpack to babel (#64)
* fix: use webpack to transpile js code and removed webpack
* fix: update tests
* fix: node version
* fix: code review
2020-02-03 19:51:19 -04:00

17 lines
593 B
JavaScript

const Web3Eth = require('web3-eth');
const Subspace = require('../dist/index.js').default;
let eth = new Web3Eth("wss://mainnet.infura.io/ws/v3/_____________");
async function run() {
const subspace = new Subspace(eth.currentProvider);
await subspace.init()
// Testing single block with a event
subspace.trackLogs({address: "0x744d70fdbe2ba4cf95131626614a1763df805b9e", topics: ["0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", "0x00000000000000000000000068f47e166e1aa7d6529e021feff86eada87aaee3", null]}).subscribe((v) => {
console.log(v);
});
}
run()