{"message":"'toLowerCase' is not a function","name":"TypeError"} with getTransactionCount #2232
-
Hi, i'm trying to write a simple function within a webhook, and everything is working fine except the nonce for the tx object. if i manually specify a nonce, the transaction goes through. But once I start using either provider.getTransactionCount(address) or signer.getTransactionCount() , i am faced with the following error {"message":"'toLowerCase' is not a function","name":"TypeError"} I have also tried provider.getTransactionCount(address.toLowerCase()) but no use. Any advice please? my provider and signer defns as follows: const provider = new ethers.providers.JsonRpcProvider(API_URL); //using alchemy api I note that the other functions using provider and signer (such as sendTransaction etc) work fine. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I think I answered a similar question. If that's not the same, can you try logging the |
Beta Was this translation helpful? Give feedback.
I think I answered a similar question. If that's not the same, can you try logging the
address
variable?