Open arsen00531 opened 2 months ago
Many
Money 💰
You can find the codes for the wallets here.
import { internal, SendMode, TonClient, WalletContractV3R2, WalletContractV4, WalletContractV5R1, OpenedContract } from '@ton/ton';
// v4r2 wallet
async function walletV4R2(keyPair: KeyPair) {
const workchain = 0; // Usually you need a workchain 0
// Create wallet contract
const wallet = WalletContractV4.create({ workchain, publicKey: keyPair.publicKey });
const contract = client.open(wallet);
return contract;
}
// v5r1 wallet
async function walletV5R1(keyPair: KeyPair) {
// Create wallet contract
const wallet = WalletContractV5R1.create({ publicKey: keyPair.publicKey });
return client.open(wallet);
}
There is no this versions of wallet