I'm writing a simple DApp on TON blockchain and using tonweb
to interact with it.
I need to send some transaction and after it confirms on chain, perform some other things in JS. Example:
await ton.send('ton_sendTransaction', [{
to: 'some address',
value: '1000'
}]
)
// wait for tx to confirm on chain
console.log('Done!')
But I don't understand how can I do that using tonweb