xssnick / tonutils-go

TON SDK Library in pure Golang for interacting with The Open Network ecosystem using native protocols, such as ADNL, RLDP and etc.
Apache License 2.0
552 stars 115 forks source link

Different wallet address V4R2 #268

Open iw4p opened 1 month ago

iw4p commented 1 month ago

Hi, I am using w, err := wallet.FromSeed(api, words, version) for getting the wallet address. V4R2 is what I need and by using code I am getting an address started with EQ.... but when I am using V4R2 TonKeeper, It always start with UQ... I am not able to replace EQ with UQ because the middle of address is the same but the end of address is not the same. Like tonutils gives me EQTTTTTTTTTTTTTXYZ and TonKeeper gives me UQTTTTTTTTTTTTTABC. What is the solution to get V4R2 address like TonKeeper which's valid for tonviewer?

xssnick commented 1 month ago

Hi, it is different form of the same address, UQ - not bounceable , EQ - bouncable, you can change this form in address type: addr.Bounce(false).String() will give you UQ form.

It looks like you are using deprecated Address() method of wallet type, it has WalletAddress() which will return you UQ form