0

Is there a way to get unconfirmed balance from an address?

I read this question

It uses a method filter, not available on present web3 version. After doing some research I found a method w3.eth.getPastLogs.Which according to documentation it was the method called behind the scenes by a previous method pendingTransactions (not available anymore).

Any ideas if this is possible?

0

Thanks to @de_ninja who had a similar need on this question

If we use parity we can do:

curl --data '{
    "method":"parity_pendingTransactions",
    "params":[],
    "id":1,
    "jsonrpc":"2.0"}' -H "Content-Type: application/json" -X 
  POST 34.194.17.216:8545 -o log.txt

With this we will save on log.txt all pending transactions in json format. From this file we can parse it and filter if a specific address have a pending transaction.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.