@solana/spl-governance
v0.3.28
Published
SPL Governance Client API
Downloads
4,914
Readme
spl-governance SDK
SPL Governance Client API for spl-governance program
Installation
(npm|pnpm|yarn) add @solana/spl-governance @solana/web3.js
Usage
import { getRealms } from '@solana/spl-governance';
import { Connection, PublicKey } from '@solana/web3.js';
const connection = new Connection("https://api.mainnet-beta.solana.com", 'recent');
const programId = new PublicKey('GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw');
const realms = getRealms(connection, programId);