1
vote
Accepted
swapTokensForExactETH, execution reverted: null
You forgot to convert the amounts from ether to wei.
https://web3js.readthedocs.io/en/v1.2.11/web3-utils.html#towei
Amounts sent in ethereum contracts are uint256, you must convert your floating point ...
1
vote
How to check if a transaction is pending?
This function returns all pending transactions in a node's mempool, but it doesn't work in Web3.js.
To read a node's mempool using Web3.js, you need to add a custom call -
//add txpool support
web3....
1
vote
connecting geth to web3.js 1.0 via websockets or HTTP
If anyone is using the Geth 1.10.17-stable-25c9b49f, command line options have changed a bit.
To enable the HTTP server, we now use the --http flag. And using the following code will achieve the same ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
web3js × 5700solidity × 1527
go-ethereum × 729
metamask × 596
truffle × 467
javascript × 452
nodejs × 402
transactions × 363
contract-development × 347
blockchain × 325
ethereumjs × 267
events × 251
dapps × 237
react × 196
infura × 187
contract-deployment × 185
contract-invocation × 184
erc-20 × 177
ether × 174
remix × 165
dapp-development × 159
ethers.js × 156
web3-providers × 156
tokens × 138
web3.py × 137