Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import TonWeb from "tonweb";
- let privateKey = await wordsToPrivateKey(arr)
- const wallet = await TonWeb.wallet.create({publicKey: privateKey.publicKey});
- let info = await wallet.provider.getAddressInfo(walletInfo.address)
- console.log(info.state)
- if (info.state == "uninitialized") {
- console.log('deploy wallet')
- const deploySended = await wallet.deploy(privateKey.secretKey).send();
- console.log(deploySended)
- }
Advertisement
Add Comment
Please, Sign In to add comment