-
Notifications
You must be signed in to change notification settings - Fork 12
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
Comments
Thanks will review tomorrow.
…Sent from my iPhone
On Jan 3, 2018, at 5:59 PM, Chi-Hao Poon ***@***.***> wrote:
ethjs-filter
Before opening a new issue, please take a moment to review our community guidelines to make the contribution process easy and effective for everyone involved.
Before opening a new issue, you may find an answer in already closed issues:
https://github.com/ethjs/ethjs-filter/issues?q=is%3Aissue+is%3Aclosed
Issue Type
Bug (https://github.com/ethjs/ethjs-filter/blob/master/.github/CONTRIBUTING.md#bug-reports)
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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Did anyone find any progress in this? Just want to listen to pending changes in some way. |
Hi, can you post your code or at least some, it may just be the way your using the module. If not there are alternatives.
Just a heads up I will be putting up bounties on a ton of stuff for ethjs fixes. If there is a problem we can get it patched shortly.
…Sent from my iPhone
On Jan 23, 2018, at 1:08 PM, Chi-Hao Poon ***@***.***> wrote:
Did anyone find any progress in this? Just want to listen to pending changes in some way.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
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.
|
Can you specify what provider you are using? is it infura?
…On Tue, Jan 23, 2018 at 1:21 PM, Chi-Hao Poon ***@***.***> wrote:
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..
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJWhXtIggSNUzDSXemmUpvWzqJDsYCUkks5tNiNFgaJpZM4RSXmX>
.
|
I'm using Metamask and they are using infura. What alternatives is there anyways regarding getting pending transactions? |
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? |
Hi, I definitely think it should be doable in just ethjs. The problem is maybe to do with how I'm handling contract events.
I wrote a small module that I believe contains most of what people actually want for their dapp including what you are after.
Checkout ethjs-extras.
It's a little radical, and up on npm. You can define contract interfaces in solidity abi format. And can listen for new events by just using contract.onEvent(callback).
I would check it out. It's even lighter than all of ethjs ;)
…Sent from my iPhone
On Mar 3, 2018, at 4:18 PM, Chi-Hao Poon ***@***.***> wrote:
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?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
onEvent sounds good, but how does it solve listening to pending transactions? |
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
The text was updated successfully, but these errors were encountered: