Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Same memonic give different wallet adress. #74

Open
ekumahost opened this issue Dec 4, 2024 · 3 comments
Open

Same memonic give different wallet adress. #74

ekumahost opened this issue Dec 4, 2024 · 3 comments

Comments

@ekumahost
Copy link

I truly need an explanation.
same mnemonic gave different wallet address on myTonWallet (https://mytonwallet.io/) and this SDk.
I have used same mnemonic here:

let wallet = WalletContractV4.create({ workchain, publicKey: keyPair.publicKey });
console.log(wallet.address);

this address I get is: EQCpWkFHCsBCBsmSchzF23Uq0tIA1_RtvVkqUiKys7cMa4tV
converted to non-bounce is: UQCpWkFHCsBCBsmSchzF23Uq0tIA1_RtvVkqUiKys7cMa9aQ

but the same mnemonic gave wallet on myTonWallet: UQCY5izJWx2NxdZub41y9JUWE2MXDHVxW_PPU4u38h96uBL4
all these look strange as I wish to programmatically get the balance of my Ton Wallet address and it return 0 even though funded.
can someone explain this?

@ekumahost
Copy link
Author

jut found that my mnemonic has multiple wallet, so how do i programatically select the wallets, since its showing one as default..

@ekumahost
Copy link
Author

how i do make sure the code here use the w5 wallet version?

@Hephaestus-V
Copy link

Hephaestus-V commented Dec 7, 2024

In ton blockchain all wallets are in the form of smart contracts so you have to make instance of wallet V5 instead of V4 to get address of w5 version .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants