Categories
Cryptocurrency Ethereum Mastering Development

Events stop triggering after a while

I created a script that subscribes to PairCreated event on Uniswap using Web3 and Infura API. The event works for a few minutes but stops working after a while (timeouts?). How can I make it watch the event indefinitely? uniswapV2FactoryContract.events.PairCreated({}) .on(‘data’, async function(event){ const token0 = new web3.eth.Contract(IERC20.abi, event.returnValues.token0); const token1 = new web3.eth.Contract(IERC20.abi, event.returnValues.token1); […]

Categories
Cryptocurrency Ethereum Mastering Development

the best way to monitor my own account transactions in openethereum

Please I want to know if I subscribe to pendingTransactions with web3 will it monitor and send notifications of accounts pending Transactions only or all pending transactions on Ethereum network. my project requires users to create Ethereum address now I need to monitor incoming transaction of each user address to complete their services var Web3 […]

Categories
Cryptocurrency Development Ethereum

Quorum private transactions not private

I am struggling to enforce privacy using Quorum’s privateFor option. I have provisioned a consortium in Azure blockchian service with 3 nodes. I deploy a smart contract from node2 privateFor node1 using the below code, but node3 can see the contract and execute functions as well(in remix for example). I can’t figure out what i […]