I have Dapp, where user makes payable call of smart contract using web3.
contract.methods.bet(number).send({
from: accounts[0],
gas: 3000000,
value: web3.utils.toWei(bet.toString(), 'ether')
}, (err, result) => {})
I listen events from smart contract in the Dapp, so I know when transaction mined:
contract.events.blockNumberEvent((error, event) => {
console.log("transaction mined!");
});
But after this transaction mined I need to make transfers and some changes inside contract.
Can I make delayed call of smart contract (1 block delay) without user interactions? For sure with some amount of gas from my side.