All Questions
Tagged with chain-reorganization web3js
6 questions
2
votes
0
answers
550
views
Listen for Reorganized Blocks using Web3js
Assuming there is a reorganization at block height N, the block with hash H being the forked block and H' the block that is the 'actual' one.
1.
Will web3.eth.subscribe('newBlockHeaders' \[, callback\]...
2
votes
0
answers
145
views
Chain reorganisation: How often one confirmation transactions do not end up to the first block the wallet thinks
Currently web3.js wallets like MetaMask work so that they return the transaction receipt to the dApp as soon as the Ethereum node, connected internally by the wallet itself, sees one confirmation for ...
0
votes
1
answer
2k
views
What does MetaMask mean by stop injecting web3.js?
MetaMask announced that they will stop injecting web3.js here. I know previously MetaMask will add a global variable in browser window.web3 and this global lowercase web3 variable will be deprecated ...
1
vote
2
answers
6k
views
Web3.js eth.subscribe: on('changed', function(event){}) doesn't work with Metamask?
I write a demo DApp website with this javascript
const web3 = new Web3(ethereum);
const contractAddr = "0x0Aa27e4B13D5c08A8767B36a0ACb76ED4549B7EA";
const abi = ...;
let inst = new ...
0
votes
1
answer
344
views
What is the change in smart contract when the 'chain reorganizations'?
Recently I learned about 'chain reorganization'.
What is the change in smart contract when the 'chain reorganizations'?
for example,
contract Contract{
event LOG_Increase();
uint sum = 0;
...
38
votes
6
answers
8k
views
How can a DApp detect a fork or chain reorganization using web3.js or additional libraries?
Take an example of a voting DApp. A user clicks on a vote button, then behind the scenes a transaction gets mined on the blockchain, and finally the DApp tells the user their vote has been recorded.
...