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

walletpilot-sdk

v0.1.2

Published

SDK for AI agents to execute on-chain transactions with user-granted permissions

Readme

walletpilot-sdk

SDK for AI agents to execute on-chain transactions with user-granted permissions. Built on MetaMask's ERC-7715 standard.

Installation

npm install walletpilot-sdk

Quick Start

import { WalletPilot, PermissionBuilder } from 'walletpilot-sdk';

const pilot = new WalletPilot({ apiKey: 'wp_...' });

// Request permission (user approves once in MetaMask)
const permission = new PermissionBuilder()
  .spend('USDC', '100', 'day')   // Max 100 USDC per day
  .spend('ETH', '0.1', 'day')    // Max 0.1 ETH per day
  .chains([1, 137, 42161])       // Ethereum, Polygon, Arbitrum
  .expiry('30d')                 // Valid for 30 days
  .build();

const { deepLink } = await pilot.requestPermission(permission);
console.log('Open in MetaMask:', deepLink);

// Later, execute without approval
const result = await pilot.execute({
  to: '0x...',
  data: swapCalldata,
  chainId: 1
});

console.log('Transaction:', result.hash);

Features

  • No Private Keys — Users keep their MetaMask. Grant scoped permissions, not keys.
  • Guardrails — Spend limits, chain allowlists, contract restrictions.
  • Multi-Chain — Ethereum, Polygon, Arbitrum, Optimism, Base.
  • MetaMask Native — Built on official ERC-7715 standard.

How It Works

  1. User grants permission via MetaMask (ERC-7715)
  2. Permission stored as delegation to session account
  3. Agent executes transactions within limits
  4. No per-tx approval needed

API

WalletPilot

Main client class.

const pilot = new WalletPilot({
  apiKey: 'wp_...',        // API key (get at walletpilot.xyz)
  apiUrl: 'https://...',   // Custom API URL (optional)
  debug: true,             // Enable logging (optional)
});

PermissionBuilder

Fluent builder for permission requests.

const permission = new PermissionBuilder()
  .spend(token, limit, period)  // Add spending limit
  .chains([1, 137])             // Set allowed chains
  .contracts(['0x...'])         // Set allowed contracts
  .expiry('30d')                // Set expiration
  .description('...')           // Human-readable description
  .build();

pilot.requestPermission(permission)

Request permission from user. Returns deep link to open in MetaMask.

const { deepLink, requestId, expiresAt } = await pilot.requestPermission(permission);

pilot.execute(intent)

Execute a transaction using granted permissions.

const result = await pilot.execute({
  to: '0x...',      // Target address
  data: '0x...',    // Calldata
  value: 0n,        // ETH value (optional)
  chainId: 1,       // Chain ID
});
// Returns: { hash, chainId, status }

pilot.getState()

Get current connection state and active permissions.

const state = pilot.getState();
// { connected: true, address: '0x...', permissions: [...] }

pilot.getTransaction(hash, chainId)

Get transaction status from chain.

const tx = await pilot.getTransaction('0x...', 1);
// { hash, chainId, status, blockNumber, gasUsed }

Supported Chains

| Chain | ID | |-------|-----| | Ethereum | 1 | | Polygon | 137 | | Arbitrum | 42161 | | Optimism | 10 | | Base | 8453 |

Links

License

MIT