fix(admin): resolve incorrect crypto balance calculation fallback displaying fiat amount

This commit is contained in:
mstfyldz
2026-03-14 18:09:18 +03:00
parent 8800454b60
commit a0e787e03c
17 changed files with 525 additions and 22 deletions

9
checkMainnet.ts Normal file
View File

@@ -0,0 +1,9 @@
import { Connection, PublicKey } from '@solana/web3.js';
async function checkMainnet() {
const connection = new Connection('https://api.mainnet-beta.solana.com', 'confirmed');
const pubkey = new PublicKey("HvfSWWepPGnb1JSAuqEogq3mTvm9pTXKQZD4WKFCHKYe");
const bal = await connection.getBalance(pubkey);
console.log("Mainnet Balance:", bal / 1e9);
}
checkMainnet().catch(console.log);