TypeScript client for the SPL Governance program, generated using Coda with full ESM support.
IDL changes:
RealmConfigArgs is renamed to RealmConfigParamsGoverningTokenConfigArgs is renamed to GoverningTokenConfigParamsbun add @macalinao/clients-spl-governance
This client is generated from the SPL Governance IDL using Coda CLI:
# Generate the client from idls/spl_governance.json
bun run codegen
# Build the TypeScript
bun run build
The coda.config.mjs file defines custom PDAs for the SPL Governance program, including:
import {
getCreateRealmInstruction,
findRealmPda,
} from "@macalinao/clients-spl-governance";
// Create a new realm
const realmPda = await findRealmPda({ name: "my-dao" });
// Use the generated client functions
Copyright © 2025 Ian Macalinao
Licensed under the Apache License, Version 2.0