Package Exports
- @solana/spl-governance
- @solana/spl-governance/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@solana/spl-governance) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
governance-sdk
SPL Governance Client API for spl-governance program
Usage
import { getRealms } from '@solana/spl-governance';
const governanceProgramId = new PublicKey('GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw');
const rpcEndpoint = "https://api.mainnet-beta.solana.com";
const realms = getRealms(rpcEndpoint, governanceProgramId);