Can someone give me anadvice?
How to use Tonkeeper wallet v4R2 from JS.
I'm confused. What do I need to use tonweb or ton js

Jun 26, 2023, 12:15 PM
TonWeb has a example of using this in a Readme on GitHub
https://github.com/toncenter/tonweb
Jun 26, 2023, 12:17 PM
Do you want to interact with the tonkeeper? Check Blueprint
Jun 26, 2023, 12:18 PM
> tonweb or ton js

You can use any of those two libraries. Here is a tutorial for both: https://ton-community.github.io/tutorials/01-wallet/
Jun 26, 2023, 12:26 PM
No, I mean interact with wallet created in Tonkeeper
Thanks everyone
it's working with my old wallet v3r2 using
wallet = ton.WalletContractV3R2.create(...)
But with my newer wallet v4r2 it does not work, i'm getting wrong address.
Is it posible that wallet = ton.WalletContractV4.create() is wrong contract? v4 not v4r2
Jun 26, 2023, 1:34 PM
Have you tried ton.WalletContractV4R2.create()?
As far as I remember, WalletContractV4 is base class that shouldn't be constructible at all.
Jun 26, 2023, 1:35 PM
There is no v4r2
am I using outdated version of ton js?
Jun 26, 2023, 1:36 PM
Hm, there is no v4r2 in the repository as well.
You can try to extend the WalletContractV4 class rewriting its constructor so that it would set the wallet code correctly.
Jun 26, 2023, 1:39 PM
Ok, thanks, i'll try to find contract v4r2 that tonkeeper is using...
Jun 26, 2023, 1:40 PM
You can see your own wallet in Tonscan and copy the code from there.
Jun 26, 2023, 1:41 PM
ou! thanks
Jun 26, 2023, 1:41 PM
it's v4r2
Jun 26, 2023, 1:52 PM

© 2024 Draquery.com All rights reserved.