Here is my transaction from ethereum.

transaction is shown as followed



Using the code below gives me a error,

var count = web3.eth.getTransactionCount(tx);

Error: Provided address "0x92c1ec18a97bce88fca9649711280ec84241cd230ffa5dc51485a6637b238fc0" 
is invalid, the capitalization checksum test failed, or its an indrect 
IBAN address which can't be converted.

update I changed the transaction hash to the eth address, the call returns me


instead of the count value

what is the problem?

1 Answer 1


txin your example is the transaction hash. Function getTransactionCount(...), however, needs an account as parameter.This is what is recognized, therefore the error.

If you want to get more information on the transaction, use web3.eth.getTransaction(tx). Here, tx has to be the transaction hash.

  • by using web3.eth.getTransaction(tx), can I get the nouce for the transaction?
    – user824624
    Nov 24, 2017 at 8:24
  • Yes, you can get the nonce and all other parameters related to the transaction, see here: github.com/ethereum/wiki/wiki/…
    – gisdev_p
    Nov 24, 2017 at 8:28
  • I tried the eth address, but can't get the counting value. (question updated)
    – user824624
    Nov 25, 2017 at 7:19
  • Looks like you are using Node.js and missing the success callback handler. But hard to say more without knowing the code that causes this.
    – gisdev_p
    Nov 25, 2017 at 8:51
  • yes, it looks like a callback. but from its api, it doesn't need a callback handler
    – user824624
    Nov 25, 2017 at 9:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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