Guest User

Untitled

a guest
Feb 4th, 2022
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. const wallet = await TonWeb.wallet.create({publicKey: privateKey.publicKey});
  2. let info = await wallet.provider.getAddressInfo(walletInfo.address)
  3. console.log(info.state)
  4. if (info.state == "uninitialized") {
  5. console.log('deploy wallet')
  6. const deploySended = await wallet.deploy(privateKey.secretKey).send();
  7. console.log(deploySended)
  8. }
Advertisement
Add Comment
Please, Sign In to add comment