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 🙏

© 2025 – Pkg Stats / Ryan Hefner

zyfi-agw-plugin

v1.0.1

Published

ZyFi's paymaster handler for AGW

Readme

ZyFi Paymaster plugin for AGW-SDK

Getting started

Installation

npm i zyfi-agw-plugin
pnpm i zyfi-agw-plugin
yarn add zyfi-agw-plugin

API Key

Sign up at our Dashboard and create API key.

Quick start

import { createAbstractClient } from '@abstract-foundation/agw-client';
import { createZyfiPaymaster } from 'zyfi-agw-plugin';

const abstractClient = await createAbstractClient({
  signer,
  chain,
  transport: http(),
  customPaymasterHandler: createZyfiPaymaster({
    apiKey: 'YOUR-API-KEY',
    sponsorshipRatio: 100,
  }),
});

Session keys

import { createZyfiPaymaster } from "zyfi-agw-plugin";

// ...
// initialize session key
// ...

// Create a session client
const sessionClient = createSessionClient({
  account: account.address!,
  chain: abstractTestnet,
  signer: sessionSigner,
  session: session,
  paymasterHandler: createZyfiPaymaster({
    apiKey: 'YOUR API KEY',
    generalFlow: true,
  });,
});

// send sponsored transaction
await sessionClient.sendTransaction({
  account: account.address!, // OR maybe sessionClient.account
  to: "0xC4822AbB9F05646A9Ce44EFa6dDcda0Bf45595AA",
  data: encodeFunctionData({
    abi: MINT_ABI,
    functionName: "mint",
    args: [session.signer, BigInt(1)],
  }),
  chain: abstractTestnet,
});

Parameters

| Parameter | Description | Required | | ------------------ | ------------------------------------------------------------------------------------------------------ | -------- | | apiKey | Your API key. Get it from Dashboard | Yes | | feeTokenAddress | The address of the token to be used for fee payment | No | | checkNFT | Whether to check for NFT ownership for fee payment | No | | isTestnet | Whether the transaction is on a testnet | No | | sponsorshipRatio | The ratio of fees to be sponsored by the paymaster (0-100) | No | | replayLimit | Determines the user nonces interval for which the response will be valid (current nonce + replayLimit) | No | | generalFlow | Turn it on when using session keys | No |