Hello, what module should I add to get the WalletContractV4R2 to get the format used in Tonkeeper ? Currently there's only WalletContractV4 from (@ton/ton)
Jan 6, 2024, 6:05 AM
Does it return other address?
(v4r1 was deprecated because it was hard to use without get-methods)
(v4r1 was deprecated because it was hard to use without get-methods)
Jan 6, 2024, 6:10 AM
I can't even find it from @ton/ton module, it only include v1 v3r2...V4
there's no V4R1 or 2
Jan 6, 2024, 6:40 AM
Just V4 returns other address?
Jan 6, 2024, 6:47 AM
@ton/ton is v4r2
Jan 6, 2024, 6:48 AM
Yes
Or are we suppose to import it from another module ?
Because there's only V4 in this module of @ton/ton
Because there's only V4 in this module of @ton/ton
I'm using npm package to install
Any update on this
Jan 6, 2024, 9:03 AM
I've replied to you
Jan 6, 2024, 9:04 AM
But I can't import V4R2 if you look at the picture I sent there's no 4R2 in the list of options
Jan 6, 2024, 9:13 AM
It's v4r2
V4 = v4r2
Jan 6, 2024, 9:14 AM
I see, but I'm getting the (K) address format when I query my address
Although it gets converted to E or U when I use tonview or scan. How can I get a desired format ?
Jan 6, 2024, 9:18 AM
K means Testnet
Jan 6, 2024, 9:22 AM
May be check the version of ton client you are using ..
Jan 6, 2024, 9:27 AM
I'll give that a check when am back on pc
I'll check my network mode code probably it's not updating and I'm stuck on testnet, but when I use the toggle to switch between mainnet and testnet from by UI I see zero balance on main which is true and 7.27 balance on testnet which is also true, but the address remains unchanged
This was the answer I'm looking for 📍
https://docs.ton.org/develop/dapps/cookbook#how-to-obtain-different-types-of-addresses-and-determine-the-address-type
https://docs.ton.org/develop/dapps/cookbook#how-to-obtain-different-types-of-addresses-and-determine-the-address-type
Jan 6, 2024, 9:49 AM