@talkol Hi
What is get method to get state?
Or where can I find info?

Jul 2, 2022, 11:35 AM
Since there is an add method, is there "substract" method?
Jul 2, 2022, 11:46 AM
sub?
GitHub - indutny/bn.js: BigNum in pure javascript
https://github.com/indutny/bn.js#arithmetics
I believe TonWeb is the most up to date. It's not feature complete, but it should have the most common things.
Jul 2, 2022, 12:14 PM
There’s a function called getChannelState that you can call: https://github.com/toncenter/tonweb/blob/master/src/contract/payments/PaymentChannel.js#L331

You can see the rest of the methods in this source file
Jul 2, 2022, 4:11 PM

© 2024 Draquery.com All rights reserved.