We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
async createWallet() { const keyPair = TonWeb.utils.nacl.sign.keyPair()
const tonweb = new TonWeb( new TonWeb.HttpProvider("https://testnet.toncenter.com/api/v2/jsonRPC", { apiKey: process.env.TON_APIK, }), ) const publicKey = keyPair.publicKey const privateKey = keyPair.secretKey const WalletClass = TonWeb.Wallets.all.v3R2 const wallet = new WalletClass(tonweb.provider, { publicKey: publicKey, }) const walletAddress = await wallet.getAddress() const address = walletAddress.toString(true, true, true, true) return { address, publicKey, privateKey }
}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
async createWallet() {
const keyPair = TonWeb.utils.nacl.sign.keyPair()
}
The text was updated successfully, but these errors were encountered: