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

@fusyfox/web3-core

v0.6.3-beta.6

Published

Fusyona web3 tools library.

Readme

web3-core

Core web3 utilities and components for interacting with EVM-compatible blockchains.

Components

Multicaller

The Multicaller is a utility class that allows you to batch multiple contract calls into a single transaction using the Multicall3 contract. This is useful for reducing the number of RPC calls and transactions needed to interact with multiple contracts.

Important: When using Multicaller, note that any contract method using msg.sender will see the Multicall3 contract address as the sender, not the user's address. This is because the Multicall3 contract is the one actually executing each call. Design your contract interactions accordingly.

Features

  • Batch multiple contract calls into a single transaction
  • Support for allowing specific calls to fail without reverting the entire transaction
  • Automatic deployment address resolution based on chain ID
  • TypeScript support with full type safety

Installation

npm install @fusyona/web3-core

Usage

  1. Basic Usage:
import { Multicaller, to } from "@fusyona/web3-core";

// Initialize Multicaller with a provider (deployment is automatically detected from connected network)
const multicaller = await Multicaller.fromProvider(provider);

// Execute all calls in a single transaction
const tx = await multicaller.multicall(
    to(tokenA, "transfer", [recipient, amount]),
    to(tokenB, "transfer", [recipient, amount]),
);
  1. With Signer:
// Use a specific signer for the transaction
await multiCaller
    .withSigner(signerAddress)
    .multicall(to(tokenA, "transfer", [recipient, amount]), to(tokenB, "transfer", [recipient, amount]));
  1. Allowing Failures:
// The third parameter (true) allows this call to fail without reverting the transaction
await multicaller.withSigner(signerAddress).multicall(
    to(tokenA, "transfer", [recipient, amount]),
    to(tokenB, "mint", [recipient], true), // This call can fail
);

API Reference

Multicaller
  • static fromProvider(provider: Provider, overrideAddress?: Address)

    • Creates a new Multicaller instance from an ethers Provider
    • Automatically detects the correct Multicall3 contract address for the network. You can optionally use a custom address
  • withSigner(address: Address)

    • Returns a new Multicaller instance that will use the specified signer address
  • multicall(...calls: Call[])

    • Executes multiple contract calls in a single transaction
    • Returns a ContractTransactionResponse
to Helper Function

The to helper function provides full type safety for contract interactions:

  • contract: Accepts any ethers Contract instance. The function will infer all available methods from the contract's ABI
  • method: Type-safe autocomplete for all methods available in the contract
  • args: Type checking for method parameters, ensuring you pass the correct types and number of arguments
  • allowFailure: Optional boolean to allow the specific call to fail without reverting the entire multicall

The function leverages TypeScript's type system to catch errors at compile time, such as:

  • Calling non-existent contract methods
  • Passing wrong argument types
  • Missing required parameters
  • Passing extra parameters

Supported Networks

The Multicaller is deployed and ready to use on the following networks:

  • Sei Mainnet (Chain ID: 1329)
  • BSC Testnet (Chain ID: 97)
  • Sei Testnet (Chain ID: 1328)
  • Sei Devnet (Chain ID: 713715)
  • Base Sepolia (Chain ID: 84532)
  • Sepolia (Chain ID: 11155111)

The deployment addresses are automatically detected based on the connected network. You can optionally override the address using the overrideAddress parameter in fromProvider.

Examples

  1. Multiple Token Transfers:
await multicaller
    .withSigner(signerAddress)
    .multicall(to(tokenA, "transfer", [recipient, amount]), to(tokenB, "transfer", [recipient, amount]));
  1. Multiple Token Mints:
await multicaller
    .withSigner(signerAddress)
    .multicall(to(tokenA, "mint", [recipient, amount]), to(tokenB, "mint", [recipient, amount]));
  1. Mixed Token Operations:
await multicaller
    .withSigner(signerAddress)
    .multicall(
        to(tokenA, "transfer", [recipient, amount]),
        to(tokenB, "mint", [recipient, amount]),
        to(tokenC, "burn", [amount]),
    );