Skip to content

Instantly share code, notes, and snippets.

View BattleB0t's full-sized avatar
⌨️
Coding

WyldB0t BattleB0t

⌨️
Coding
View GitHub Profile
@munanadi
munanadi / tokenBalance.js
Created December 23, 2021 15:22
Fetches token balances same as solscan API
import { Connection, PublicKey } from "@solana/web3.js";
// var JSON_parse = require("uint8array-json-parser").JSON_parse;
import { TOKEN_PROGRAM_ID, Token } from "@solana/spl-token";
const connection = new Connection("https://solana-api.projectserum.com");
// token account here
const owner = new PublicKey("---------------------");
connection
@MPThLee
MPThLee / enableDiscordExperiments.js
Last active December 9, 2025 18:39
This code doesn't work anymore. I just decided to remove this code. You can check working code on comments.
/**
* !!!! This code doesn't work anymore !!!!
*
* - You can check working code on comments. I won't update this code anymore.
*
* Also, I just decided to remove this code. You can check revisions for old code.
* Since this code was made for discord client that almost 5 years ago, It seems like doesn't work anymore.
* I don't want people keep arguing in the comments, i decided to remove this code.
*
* Note: This code is now fulfilled with Javascript comments. This code won't work even if you pasted to console. doesn't do anything.