JSPM

  • Created
  • Published
  • Downloads 8334
  • Score
    100M100P100Q135006F
  • License MIT

SPL Governance Client API

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 { 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);