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
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 { PublicKey } from '@solana/web3.js';
const programId = new PublicKey('GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw');
const rpcEndpoint = "https://api.mainnet-beta.solana.com";
const realms = getRealms(rpcEndpoint, programId);