1
vote
Eth price dont update after another function iteration
Ethereum generates a new block every ~12 seconds. All on-chain data remains the same during the interval. So, it is normal to have no updates in 5 seconds.
1
vote
Accepted
Cannot create the same ECDSA signature with Web3.py and ethers.js
For ethers.js version 6, the code will be slightly different:
let signer = new ethers.SigningKey(privateKey);
let messageHash = await ethers.solidityPackedKeccak256([ "string", "...
1
vote
React (opts:) not working, am i missing dependency?
That version of Web3Modal doesn't work any more and has been deprecated. Try v3 check docs here: https://docs.walletconnect.com/web3modal/react/about?platform=ethers
1
vote
If blockhash changes, did block become uncle?
Uncles were only in Ethereum's early years when it was using Proof of Work.
In Ethereum's Proof of Stake, when a block is replaced by another block, the common case would be called an orphan block. ...
eth♦
- 85k
1
vote
Cannot read properties of null (reading 'constructor') Etherjs error
Just change in the second line to const contract = new ethers.Contract so you'll call class constructor.
And no need in await on second line as constructor in synchronous
1
vote
How to encode param of type address
These are scripts I tried.
(I think it's not ideal to continue the exchange here multiple times, so I'll present this source code and conclude my remarks. I apologize if it doesn't get resolved.)
In ...
1
vote
What is the best way to fetch and store data from ethereum blockchain for migration of contracts?
With 0xweb tool you could dump the contracts storage first. It collects all the contract state variables from the source, so the contract must be validated on a block explorer, or if you develop ...
1
vote
Now that eth_decrypt and eth_getEncryptionPublicKey are deprecated, is there a good way to encrypt and decrypt data via a user's private key?
I'm not sure if it's the same way you me but I was using metamask for something like this before, but it's not suggested anymore. Also metamask deprecated its related method. The main reason is that ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
ethers.js × 1560solidity × 482
hardhat × 325
web3js × 267
javascript × 175
react × 123
metamask × 111
uniswap × 73
blockchain × 70
nodejs × 67
transactions × 66
ether × 65
events × 56
hardhat-deploy × 54
erc-20 × 49
testing × 47
contract-deployment × 44
etherscan × 41
web3-providers × 41
dapps × 40
contract-development × 38
ethereumjs × 35
go-ethereum × 34
contract-invocation × 34
polygon × 33