Getting Started & Fetching Data from the GSPL
Find out how to quickly fetch verified DAOs from the GSPL
Setting up the SDK
npm install \
@metaplex-foundation/umi \
@metaplex-foundation/umi-bundle-defaults \
@solana/web3.js \
gspl-directoryInitializing the GSPL
import {createUmi} from "@metaplex-foundation/umi-bundle-defaults";
import {getRealms, RequestStatus} from "gspl-directory";
import {publicKey as UmiPK} from "@metaplex-foundation/umi"; Fetching the GSPL Directory
const CONFIG = UmiPK("GrVTaSRsanVMK7dP4YZnxTV6oWLcsFDV1w6MHGvWnWCS");
const umi = createUmi(RPC_ENDPOINT);
const entries = await getRealms(umi, CONFIG, RequestStatus.Approved);
console.log("Entries ",entries);Example Fetching Summary

Example Verified DAO

Last updated