Tools that eat glass so you don't have to.
Docs coming soon...
(npm|pnpm|yarn) add glasseater @solana/web3.js
import { AccountsQuery } from "glasseater";
const proposalsQuery = new AccountsQuery(SCHEMA, Proposal);
proposalsQuery
.for(programId)
.select(["config"])
.where({
accountType,
realm: new PublicKey(realmId),
});
const proposals = await proposalsQuery.fetch();
* like swr, but this and batching might be better handled with a service worker