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?

Ismael
  • 30,570
  • 21
  • 53
  • 96
Eduardo
  • 231
  • 2
  • 11

1 Answers1

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.

Eduardo
  • 231
  • 2
  • 11