Skip to content

Instantly share code, notes, and snippets.

@billythedummy
Last active March 4, 2024 22:21
Show Gist options
  • Save billythedummy/05b4beeda317cde4b034a606bdfe65c0 to your computer and use it in GitHub Desktop.
Save billythedummy/05b4beeda317cde4b034a606bdfe65c0 to your computer and use it in GitHub Desktop.
solana realms.today (spl-governance) ts script to generate base64-encoded custom instruction
import { type TransactionInstruction } from "@solana/web3.js";
import { serializeInstructionToBase64 } from "@solana/spl-governance";
const IX: TransactionInstruction = ...; // TODO by user
console.log(serializeInstructionToBase64(IX));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment