How can I wait for transaction to confirm using TonWeb?
How can I wait for transaction to confirm using TonWeb?
I'm writing a simple DApp on *TON blockchain* and using the [`tonweb`](https://github.com/toncenter/tonweb) JavaScript library to interact with it.
I need to first send a transaction, and then after it confirms on chain, perform some other code in JavaScript.
Example:
```js
await ton.send('ton_sendTransaction', [{
to: 'some address',
value: '1000'
}]
)
// wait for tx to confirm on chain
console.log('Done!')
```
I don't know how to wait for a transaction's confirmation.
I'm writing a simple DApp on *TON blockchain* and using the `tonweb` JavaScript library to interact with it.
I need to send some transaction and after it confirms on chain, perform some other things in JavaScript.
Example:
```js
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 wait for confirmation.
#tonweb
#javascript
How can I wait for transaction to confirm using TonWeb?
How can I wait for transaction to confirm using TonWeb?
I'm writing a simple DApp on *TON blockchain* and using the `tonweb` JavaScript library to interact with it.
I need to send some transaction and after it confirms on chain, perform some other things in JavaScript.
Example:
```js
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 wait for confirmation.
I'm writing a simple DApp on *TON blockchain* and using the `tonweb` JavaScript library to interact with it.
I need to send some transaction and after it confirms on chain, perform some other things in JavaScript.
Example:
```js code
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 wait for confirmation.
#tonweb
#javascript
How can I wait for transaction to confirm using TonWeb?
How can I wait for transaction to confirm using TonWeb?
I'm writing a simple DApp on *TON blockchain* and using the `tonweb` JavaScript library to interact with it.
I need to send some transaction and after it confirms on chain, perform some other things in JavaScript.
Example:
```js code
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 wait for confirmation.
I'm writing a simple DApp on *TON blockchain* and using the `tonweb` JavaScript library to interact with it.
I need to send some transaction and after it confirms on chain, perform some other things in JavaScript.
Example:
```js
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 wait for confirmation.
#javascript
How can I wait for transaction to confirm using TonWeb?
How can I wait for transaction to confirm using tonweb?
I'm writing a simple DApp on *TON blockchain* and using the `tonweb` JavaScript library to interact with it.
I need to send some transaction and after it confirms on chain, perform some other things in JavaScript.
Example:
```js
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 wait for confirmation.
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
#tonweb
How can I wait for transaction to confirm using tonweb?
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