2
votes
How to get a index position of the storage on the smart contract?
If you are using foundry for development, the cast command line utility will give you entire storage layout for your contract.
You'll have to give an rpc-url for the network and the blockscanner api ...
2
votes
Tracking the spedup transactions from metamask
There is one way of tracking this. Follow these steps.
Fetch the nonce of the last transaction submitted by the account. In this case, the nonce of increaseAllowance called.
Subscribe for pending ...
1
vote
Accepted
Error (9322): No matching declaration found after argument-dependent lookup
Try to use vm.deal()
Also try put the function testDust() public in contract ContractTest is Test {}
deal(address(LocalHLP) , bob , 10000e18 ,);
1
vote
ethers.js library version to use to learn Ethereum development
For learning ethers.js, it would be better to learn the latest version, v6 currently.
v6 allows you to also learn built-in ES2020 BigInt.
One of the biggest changes in v6 is that the BigNumber class ...
eth♦
- 85k
1
vote
How to know base token from the pool
There is no on-chain way to determine which token is a base token or which is a quote token if token0 and token1 are mapped to normal trading pairs.
The trading pair base-quote token order is a human-...
1
vote
Listening to UniswapV3 PoolCreated event with web3
Dev Advocate at Chainstack here.
As far as I know, Infura (and getblock), at this point, don't allow for subscriptions over WebSocket.
I don't wanna be the devil's advocate, but Chainstack allows for ...
1
vote
Error "does not exist" using web3.eth.personal.sign
This answer is just for in case you are not created the rpc provider by your own but using external provider(like: Infura, Alchemy, Pokt, ...) as they will not support --rpcapi personal (Actually, all ...
1
vote
Ethereum Address string size
0x0000000000000000000000000000000000000000 how to generate address keep 37 chracter constant and generate last 5 characters like this
0x0000000000000000000000000000000000000001
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
web3js × 6080solidity × 1686
go-ethereum × 757
metamask × 633
javascript × 511
truffle × 478
nodejs × 411
blockchain × 371
transactions × 364
contract-development × 349
ethereumjs × 273
ethers.js × 266
events × 253
dapps × 249
react × 221
ether × 196
remix × 195
contract-deployment × 193
erc-20 × 192
contract-invocation × 185
infura × 183
web3-providers × 173
web3.py × 161
dapp-development × 159
tokens × 151