INNER CODE UNIT · TypeScript

buildBurnCloseInstructions

bitman09/pumpfun-sniper-bot · src/burn.ts:31

async function buildBurnCloseInstructions(
  row: TokenAccountRow,
  payer: PublicKey
): Promise<TransactionInstruction[]> {
  const ix: TransactionInstruction[] = [
    createBurnCheckedInstruction(
      row.pubkey,
      row.mint,
      payer,
      row.amount,
      row.decimals,
      [],
      row.programId
    ),
  ];

  // Pump.fun mints use Token-2022 transfer fees; harvest before close (error 0x23).
  if (row.programId.equals(TOKEN_2022_PROGRAM_ID)) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…