npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@fuul/sdk-solana

v0.5.7

Published

SDK to interact with the Full Solana program

Readme

Fuul SDK

Install

nvm use && yarn install

Build

# build all
yarn build

# Build all
yarn build:esm
yarn build:cjs

Docs

Generate

yarn docs

Serve locally

yarn docs:serve

Testing

Tests for this SDK are run at the workspace level from the repository root. Use yarn build:docs && yarn test:all to execute all tests across packages, including the SDK.

Usage

The sdk has some read and some write operations. Find details about each method with yarn docs && yarn docs:serve

Reading Data

To read data from the blockchain, use the getter methods. For example, to read the global config:

import { Connection } from '@solana/web3.js';
import { FuulSdk, Network } from '@wakeuplabs/fuul-solana';

const connection = new Connection('https://api.mainnet-beta.solana.com');
const sdk = new FuulSdk(connection, Network.MAINNET);

// Read global config
const globalConfig = await sdk.getGlobalConfig();

if (globalConfig) {
  console.log('Paused:', globalConfig.paused);
  console.log('Project Nonce:', globalConfig.projectNonce.toString());
  console.log('Claim Cool Down:', globalConfig.claimCoolDown.toString());
  console.log('Fee Collector:', globalConfig.feeManagement.feeCollector.toString());
  console.log('User Native Claim Fee:', globalConfig.feeManagement.userNativeClaimFee.toString());
  console.log('Project Claim Fee:', globalConfig.feeManagement.projectClaimFee.toString());
  console.log('Remove Fee:', globalConfig.feeManagement.removeFee.toString());
}

Sending Transactions

To send a transaction, create instructions using the SDK methods, add them to a transaction, and send it. For example, to update global fees:

import { Connection, Keypair, PublicKey, sendAndConfirmTransaction, Transaction } from '@solana/web3.js';
import { FuulSdk, Network } from '@wakeuplabs/fuul-solana';
import * as anchor from '@coral-xyz/anchor';

const connection = new Connection('https://api.mainnet-beta.solana.com');
const sdk = new FuulSdk(connection, Network.MAINNET);
const wallet = Keypair.fromSecretKey(/* your secret key */);

// Create instructions to update global fees
const updateFeesInstructions = await sdk.updateGlobalConfigFees({
  authority: wallet.publicKey,
  userNativeClaimFee: new anchor.BN(1000000), // 0.001 SOL in lamports
  projectClaimFee: new anchor.BN(100), // 1% in basis points (100/10000)
  removeFee: new anchor.BN(50), // 0.5% in basis points (50/10000)
  // feeCollector is optional - only include if you want to update it
});

// Build and send the transaction
const transaction = new Transaction().add(...updateFeesInstructions);
const signature = await sendAndConfirmTransaction(
  connection,
  transaction,
  [wallet],
  { commitment: 'confirmed' }
);

console.log(`Transaction confirmed: ${signature}`);

Batching Transactions

You can batch multiple operations into a single transaction by combining multiple instruction arrays:

import { Connection, Keypair, PublicKey, sendAndConfirmTransaction, Transaction } from '@solana/web3.js';
import { FuulSdk, Network } from '@wakeuplabs/fuul-solana';
import * as anchor from '@coral-xyz/anchor';

const connection = new Connection('https://api.mainnet-beta.solana.com');
const sdk = new FuulSdk(connection, Network.MAINNET);
const wallet = Keypair.fromSecretKey(/* your secret key */);

// Create multiple instruction sets
const updateFeesInstructions = await sdk.updateGlobalConfigFees({
  authority: wallet.publicKey,
  userNativeClaimFee: new anchor.BN(1000000),
  projectClaimFee: new anchor.BN(100),
});

const updateConfigInstructions = await sdk.updateGlobalConfig({
  authority: wallet.publicKey,
  claimCoolDown: new anchor.BN(86400), // 1 day in seconds
  requiredSignersForClaim: 2,
});

// Batch all instructions into a single transaction
const transaction = new Transaction().add(
  ...updateFeesInstructions,
  ...updateConfigInstructions
);

// Send the batched transaction
const signature = await sendAndConfirmTransaction(
  connection,
  transaction,
  [wallet],
  { commitment: 'confirmed' }
);

console.log(`Batched transaction confirmed: ${signature}`);

Note: When batching transactions, make sure all instructions are compatible and can be executed in the same transaction. Some operations may have dependencies or constraints that prevent them from being batched together.