Skip to content
New issue

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

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

Already on GitHub? # to your account

How to get string wallet address from keyPair? #8

Open
0xBeycan opened this issue Jan 8, 2025 · 2 comments
Open

How to get string wallet address from keyPair? #8

0xBeycan opened this issue Jan 8, 2025 · 2 comments

Comments

@0xBeycan
Copy link

0xBeycan commented Jan 8, 2025

How to get string wallet address from keyPair?

result have to be '0QBh14OFHZqXqMyAHUio8EZ9FAf5smnkcmb0j533aHtFNcsF' what I see in Tonkeeper wallet

Screenshot 2025-01-08 at 12 57 03
import { TonClient } from "@ton/ton";
import { mnemonicToPrivateKey } from "@ton/crypto";

const mnemonics = [...]


const client = new TonClient({
    endpoint: 'https://testnet.toncenter.com/api/v2/jsonRPC',
});

;(async () => {
    const keyPair = await mnemonicToPrivateKey(mnemonics)
})()
@0xBeycan
Copy link
Author

0xBeycan commented Jan 8, 2025

@iohem93 @greghub-alt You bitches why not work on good jobs?

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

No branches or pull requests

2 participants
@0xBeycan and others