Skip to content

Instantly share code, notes, and snippets.

View imprfekt's full-sized avatar
🛠️
#BUIDL

Malisha Streamflow imprfekt

🛠️
#BUIDL
View GitHub Profile
victim_address hack_amount_dollarised hack_incidents
Exi964mWHtpazeVMo4nuEjeYzxRzo1ANt5yyREXvBRFc 249648.56671563100 2
AGtNQ48W5onM3HGfcnwNwbz9xqQwZNbt76vAnX13Wm8b 124920.55695140000 1
BbKBQygTo1z453ATthSssKM5kq3Pzhmd5Sgn5NDyYgZ5 95875.6022130375 1
9aofpQiyEaZpPPBnFZFEqVtfiixiGvMBYFFg21m6DFNE 61354.853001281 2
6KYpV4GY7muUJ9EiRdDekfh8Y5qttDtndrnmXu7wdRt5 58914.851765174500 1
EixYycpq2qVBMY4zNAj8bWU5KFvH9mCN4ETnEd7PgqmR 58262.46049383860 1
Dxh3Av3ZromYLhJpnHeCigKzKVEzJscpNBcxb7666Fyt 57316.750904905300 2
4gkLiFZcKbXW9htfC2Y4tm7D5t5Yki6P652VbnxepBGs 51337.931825263000 3
FDZJNJEJBtxpUpYUjEh53wwQkvkxNfvZC1kzBS7AU1Bi 50917.7364504018 1
function createWrappedSolAccount(){
const balanceNeeded = await Token.getMinBalanceRentForExemptAccount(connection,);
// Create a new account
const newAccount = Keypair.generate(); //todo this is not an associated token account????
const transaction = new Transaction();
transaction.add(
SystemProgram.createAccount({
fromPubkey: wallet?.publicKey as PublicKey,
newAccountPubkey: newAccount.publicKey,
lamports: balanceNeeded,
function createWrappedSolAccount(){
const balanceNeeded = await Token.getMinBalanceRentForExemptAccount(connection,);
// Create a new account
const newAccount = Keypair.generate(); //todo this is not an associated token account????
const transaction = new Transaction();
transaction.add(
SystemProgram.createAccount({
fromPubkey: wallet?.publicKey as PublicKey,
newAccountPubkey: newAccount.publicKey,
lamports: balanceNeeded,