Closed divyangkhatri closed 5 months ago
I have the same problem.. Have you find any solution?
@fereshteh-jvz No
You can ask your question in this group of ton developers: https://t.me/tondev_eng They might help
@fereshteh-jvz Thank you! I just asked on the Telegram channel
@fereshteh-jvz I found the solution. Thank you so much!, A guy from Telegram group help me.
const {WalletContractV4} = require('@ton/ton');
const {keyPairFromSeed} = require('@ton/crypto');
const {mnemonicToSeed} = require('bip39');
const {derivePath} = require('ed25519-hd-key');
const main = async () => {
const seed = await mnemonicToSeed(
'enhance chef explain another extend parade heart total brave escape together hobby',
);
const privateKey = derivePath("m/44'/607'/0'", seed).key;
const keyPair = keyPairFromSeed(Buffer.from(privateKey, 'hex'));
const wallet = WalletContractV4.create({
publicKey: keyPair.publicKey,
workchain: 0,
});
console.log('address', wallet.address);
};
main();
Hello, I want to create same wallet like Trustwallet. Below is the trust-wallet config
So, below is my mnemonics
Trustwallet Ton wallet details
Below is code snippet of generating wallet from mnemonic but it will return the different wallet from trustwallet
Above code generate below wallet
So, my main question is how to generate a same wallet like a Trustwallet? So, please help me.