1

I'm running parity --geth and attaching to it with geth attach. I can use the web3.js that is built into that attached console. For example, I can get the latest block info.

However, when looking up how many transactions I have pending, I get this error:

> eth.pendingTransactions
Error: Method not found
    at web3.js:3104:20
    at web3.js:6191:15
    at get (web3.js:6091:38)
    at <unknown>

I understand that the underlying parity RPC call is different. I was hoping that the --geth flag on parity would take care of that. Is there any way to get the console to return this info?

1

The --geth flag has no impact on the available APIs. Here are your options for pending transactions:

  • Right, I'm familiar with the RPC API, I was wondering if there was any way to do it from the web3.js object in geth attach. Are you implying that there is no way to do that, currently? – carver Sep 14 '17 at 14:46
  • Well, Geth was designed to work with Geth in the first place, and Parity can not maintain a compatibility mode forever. In the long-term you can expect a Parity console at some point. Meanwhile, you can use the browser console or nodejs console, have a look at: github.com/paritytech/parity/wiki/… – Waqar Lim Sep 15 '17 at 7:23

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.