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

gokite-aa-sdk

v1.0.15

Published

Simple and clean Account Abstraction SDK for Gokite

Readme

Gokite SDK

SDK collection for Gokite L1.

Directory Structure

sdk/
├── aa/                     # Account Abstraction SDK
│   ├── gokite-aa-sdk.ts    # Main AA SDK
│   ├── example.ts          # Usage examples
│   ├── example-token-paymaster.ts
│   └── buy-content.ts
├── staking/                # Delegator Staking SDK
│   ├── staking-example.ts  # Staking SDK
│   └── test-staking.ts     # Test script
├── config.ts               # Network configuration
├── types.ts                # Type definitions
├── utils.ts                # Utilities
└── index.ts                # Entry point

Account Abstraction SDK

Account Abstraction (EIP-4337) SDK for Gokite.

Installation

npm install gokite-aa-sdk

Quick Start

import { GokiteAASDK } from 'gokite-aa-sdk';
import { ethers } from 'ethers';

// Initialize SDK
const sdk = new GokiteAASDK(
  'kite_testnet',
  'https://rpc-testnet.gokite.ai',
  'http://localhost:14337/rpc/' // bundler URL
);

// Owner address (from your social login SDK)
const owner = '0x...';

// Get account address (can get aa wallet address even if the wallet is not deployed)
const accountAddress = sdk.getAccountAddress(owner);

// Sign function - integrate with your social login SDK
const signFunction = async (userOpHash: string): Promise<string> => {
  // Use your preferred signing method (Particle, Privy, etc.)
  return await signer.sign(ethers.getBytes(userOpHash));
};

// Send transaction
const userOpHash = await sdk.sendUserOperation(
  owner,
  {
    target: '0x...',
    value: ethers.parseEther('0.1'),
    callData: '0x'
  },
  signFunction
);

// Wait for confirmation
const status = await sdk.pollUserOperationStatus(userOpHash);
console.log('Transaction status:', status);

API Reference

GokiteAASDK

Constructor

new GokiteAASDK(network: string, rpcUrl: string, bundlerUrl?: string)

Methods

  • getAccountAddress(owner: string, salt?: bigint): string - Calculate account address
  • sendUserOperation(owner: string, request: UserOperationRequest | BatchUserOperationRequest, signFn: SignFunction, salt?: bigint, paymasterAddress?: string): Promise<string> - Send transaction
  • pollUserOperationStatus(userOpHash: string, options: PollingOptions = {}): Promise<UserOperationStatus> - Wait for confirmation
  • isAccountDeloyed(accountAddress: string): Promise<boolean> - Check if account is deployed

Types

interface UserOperationRequest {
  target: string;
  value?: bigint;
  callData: string;
}

interface BatchUserOperationRequest {
  targets: string[];
  values?: bigint[];
  callDatas: string[];
}

interface SignFunction {
  (userOpHash: string): Promise<string>;
}

Examples

Single Transaction

const request = {
  target: '0x...',
  value: ethers.parseEther('0.1'),
  callData: '0x'
};

const userOpHash = await sdk.sendUserOperation(owner, request, signFunction);

Batch Transactions

const batchRequest = {
  targets: ['0x...', '0x...'],
  values: [ethers.parseEther('0.1'), 0n],
  callDatas: ['0x', '0x...']
};

const userOpHash = await sdk.sendUserOperation(owner, batchRequest, signFunction);

Integration with Particle

docs:

https://developers.particle.network/api-reference/auth/desktop-sdks/web#personal-signatures

// After configuring AuthCoreContextProvider and logging in
const { signMessage } = useEthereum();

const signFunction = async (userOpHash: string): Promise<string> => {
  return await signMessage(userOpHash)
};

Supported Networks

  • kite_testnet: Kite Testnet (Chain ID: 2368)

Requirements

  • Node.js >= 16
  • ethers >= 6.0.0

License

MIT