Add `getTransactionCount()` method to JsonRpcProvider
See original GitHub issueShould return the number of transactions for a given address on a given block. Uses the eth_getTransactionCount RPC call.
ethers.js
equivalent - provider.getTransactionCount
const essentialEth = require('essential-eth');
const provider = new essentialEth.JsonRpcProvider();
provider.getTransactionCount('0xE0DA0FFc6e82A8B743c04DD6d15BAe7b4B48E808', 14642060);
// 10
Issue Analytics
- State:
- Created a year ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Documentation - Ethers.js
The JSON-RPC API is another popular method for interacting with Ethereum and is ... JsonRpcProvider(); // The provider also allows signing transactions to ......
Read more >Providers — ethers.js 4.0.0 documentation
The JsonRpcProvider and IpcProvider allow you to connect to Ethereum nodes you control ... it is recommended that you use the getDefaultProvider() method....
Read more >documentation/api-providers.rst at master - ethers.js - GitHub
The JsonRpcProvider and IpcProvider allow you to connect to Ethereum nodes you control ... it is recommended that you use the getDefaultProvider() method....
Read more >JsonRpcProvider class - ethers library - Dart API - Pub.dev
The JSON-RPC API is a popular method for interacting with Ethereum and is available in all major Ethereum node implementations (e.g. Geth and...
Read more >Can jsonRpcProvider.getSigner() take any address as an ...
And I have a question about the getSigner() method below. https://docs.ethers.io/v5/api/providers/jsonrpc-provider/#JsonRpcProvider-getSigner.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Added a PR. Looking forward to any reviews or suggestions. 😃
@iadnanmalik for future reference, you can view the generated
tsdoc
docs bycd docusaurus
thennpm install
andnpm run start
.I’ll add this to the readme soon 🙏