Feature | Web3.js | Ethers.js | Web3data.js |
---|---|---|---|
getHashrate | ✓ | × | ✓ |
getGasPrice | ✓ | ✓ | ✓ |
getAccounts | ✓ | ✓ | × |
getBlockNumber | ✓ | ✓ | ✓ |
getBalance | ✓ | ✓ | ✓ |
getStorageAt | ✓ | ✓ | ✓ |
getCode | ✓ | ✓ | ✓ |
getBlock | ✓ | ✓ | ✓ |
getBlockTransactionCount | ✓ | × | ✓ |
getUncle | ✓ | × | ✓ |
getTransaction | ✓ | ✓ | ✓ |
getPendingTransactions | ✓ | × | ✓ |
getTransactionFromBlock | ✓ | × | ✓ |
getTransactionReceipt | ✓ | ✓ | ✓ |
getTransactionCount | ✓ | ✓ | ✓ |
sendTransaction | ✓ | ✓ | ✓ |
sendSignedTransaction | ✓ | × | ✓ |
sign | ✓ | ✓ | × |
signTransaction | ✓ | ✓ | × |
call | ✓ | ✓ | ✓ |
estimateGas | ✓ | ✓ | ✓ |
getPastLogs | ✓ | ✓ | ✓ |
getWork | ✓ | × | × |
submitWork | ✓ | × | × |
getChainId | ✓ | ✓ | ✓ |
Contract.getPastEvents | ✓ | × | ✓ |
utils | ✓ | ✓ | × |
getEtherPrice | × | × | ✓ |
Websockets | |||
Contract.on | ✓ | ✓ | ✓ |
Contract.once | ✓ | ✓ | ✓ |
Contract.events.MyEvent | ✓ | ✓* | ✓ |
Contract.events.allEvents | ✓ | ✓* | ✓ |
*Only available via filters