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

How to get wallet_id before deploy? #87

Open
qzmer1104 opened this issue Dec 3, 2024 · 2 comments
Open

How to get wallet_id before deploy? #87

qzmer1104 opened this issue Dec 3, 2024 · 2 comments

Comments

@qzmer1104
Copy link

qzmer1104 commented Dec 3, 2024

The customer gave me a bunch of different wallets generated with the same mnemonic.
Because of the wallet addresses created by tonkeeper, only the first wallet address 's wallet_id is clear, that is:
testnet: -239 + 2^31=2147483409
mainnet: -3 + 2^31 = 2147483645

But what is the increment rule?

I tried adding 1 to the first one, but found that it doesn't work.

I can't deploy even though I have the mnemonic.

WalletV5 wallet = WalletV5.builder()
                .tonlib(tonlib)
                .keyPair(kp)
                .walletId(……)
                .isSigAuthAllowed(true)
                .build();
                
  wallet.deploy();

Is this a dead end?

@qzmer1104
Copy link
Author

qzmer1104 commented Dec 5, 2024

I know that I can get it when the transaction generates it, but is there any way to reverse it through the wallet address and mnemonic?

@neodix42
Copy link
Owner

neodix42 commented Dec 5, 2024

You have to ask the Tonkeeper team on what is the algo for generating wallet ids. Apart that you can only find out wallet id after wallet has been deployed.

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