Skip to content

Instantly share code, notes, and snippets.

import { BN } from '@coral-xyz/anchor';
import { PublicKey } from '@solana/web3.js';
import { stringify, parse } from 'json-bigint';
import fs from 'fs';
const file = 'tests/accounts/token_account.json'; // Replace with the path to your JSON file
const account = fs.readFileSync(file, 'utf8');
const newU64 = new BN(90000000000); // Replace with the desired u64 value