Last active
March 4, 2024 22:21
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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