Hello everybody ☀️

I'm pretty new in smart contract coding. Maybe a stupid question....

I try to read the pending trxs on cronos.

```
httpProvider.on("Pending", (tx) => {
console.log(tx)
//...
```

My issue is: i don't see any pending trxs

On other evm chains this code is working....

Any hint?

Thx in advance, cheers

Apr 4, 2022, 4:31 PM
which network?
Share me websocket url
Apr 4, 2022, 4:32 PM
rpcNode="https://mmf-rpc.xstaking.sg"
Its not a ws.. sorry
Apr 4, 2022, 4:33 PM
It's wrong url for websocket. it should start with wss
Apr 4, 2022, 4:36 PM
I know, variable name was wrong sorry
I use a http provider
Apr 4, 2022, 4:37 PM
got it
Apr 4, 2022, 4:37 PM
I ask me, why I don't see any pending trx on cronos
I used a filter and now it works
Thx anyway 🙂
Oh, it looks like getTransaction of a pending trx is not working on cronos 🙁
https://github.com/crypto-org-chain/cronos-blockscout/issues/59
Apr 4, 2022, 5:27 PM

© 2024 Draquery.com All rights reserved.