Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to fetch pending transactions? #5

Open
1 task done
karvex opened this issue Jan 3, 2018 · 9 comments
Open
1 task done

How to fetch pending transactions? #5

karvex opened this issue Jan 3, 2018 · 9 comments

Comments

@karvex
Copy link

karvex commented Jan 3, 2018

Issue Type

Description

I tried to get/listen/watch pending transactions from my contract. Doesn't seem to work.

Steps to reproduce

Have tried three different methods.
https://jsfiddle.net/karvex/fantokn4/

Thanks!

Versions

  • Node/NPM: 5.6.0
  • Browser: Chrome
  • Metamask 3.13.2
  • Geth/v1.7.3-stable-4bb3c89d/windows-amd64/go1.9
  • Same problem with testrpc
@SilentCicero
Copy link
Member

SilentCicero commented Jan 4, 2018 via email

@karvex
Copy link
Author

karvex commented Jan 23, 2018

Did anyone find any progress in this? Just want to listen to pending changes in some way.

@SilentCicero
Copy link
Member

SilentCicero commented Jan 23, 2018 via email

@karvex
Copy link
Author

karvex commented Jan 23, 2018

Just trying those simple alternatives like in https://jsfiddle.net/karvex/fantokn4/ . Neither of them seems to react to a pending transactions. I tried with testrpc and a private geth node.

  1. Start geth node or testrpc
  2. Start web application.
  3. Open web browser. Use correct network with Metamask.
  4. Close browser.
  5. Open web browser.
  6. Write password on MetaMask
  7. Change to correct account.
  8. Make a transaction on web application with Metamask.
  9. Nothing happens to Filter Events. https://jsfiddle.net/karvex/fantokn4/

@SilentCicero
Copy link
Member

SilentCicero commented Jan 23, 2018 via email

@karvex
Copy link
Author

karvex commented Jan 23, 2018

I'm using Metamask and they are using infura.

What alternatives is there anyways regarding getting pending transactions?

@karvex
Copy link
Author

karvex commented Mar 3, 2018

Is the workaround to use web3.js and eth.js in parallell? Like doing everything in eth.js, but only pending transactions with web3.js?

@SilentCicero
Copy link
Member

SilentCicero commented Mar 3, 2018 via email

@ripern
Copy link

ripern commented Mar 20, 2018

onEvent sounds good, but how does it solve listening to pending transactions?

legobeat added a commit to legobeat/ethjs-filter that referenced this issue Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants