Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

173
Views
Web3 Listening event err

i am using web3 suscribe event for listening to incoming and outgoing transaction from rinkeby testnet. but i am not getting anything in console.even my transaction is succesful.

i use infura websocket provider

here is my code

const Web3 = require('web3');
const webs3 = new Web3(new Web3.providers.WebsocketProvider('wss://rinkeby.infura.io/ws/v3/projectid'));
var subscription = webs3.eth.subscribe('logs', {
  address: '0x20617a33cf37387F35e0DA32aBdaDAF09D46B351',
  topics: [null]
}, function(error, result){
  if (!error)
      console.log(result);
})
.on("data", function(log){
  console.log(log);
})
.on("changed", function(log){
});

// unsubscribes the subscription
subscription.unsubscribe(function(error, success){
  if(success)
      console.log('Successfully unsubscribed!');
});
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You are subscribing to a "null" events, from the topic parameter on the code you shared which doesn't exists.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!