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

@evozim/eliza-plugin-x402

v1.0.6

Published

Eliza OS plugin to natively resolve HTTP 402 challenges and sign gasless EIP-3009 USDC micro-payments on Base L2

Readme

🤖 @evozim/eliza-plugin-x402

Natively Intercept HTTP 402 Paywalls & Autonomously Settle USDC Micropayments on Base L2

Vouch Protocol Grade A Base Mainnet Post-Quantum Ready

🔥 v1.0.6 UPDATE: Fully supports the x402 V2 Protocol (Coinbase Bazaar & x402scan compliant) and Vouch Protocol Grade A (100/100) standards. Natively parses Base64 Payment-Required (accepts[0]), x-402-price, and x-402-contract headers, runs free pre-flight validation on /:slug/api/preview, and verifies PAYMENT-RESPONSE settlement receipts — with zero runtime CJS/ESM conflicts across all @elizaos/core versions.

🌐 DISCOVER 1,057 DETERMINISTIC NODES (<250ms Compute SLA): Connect your ElizaOS agents to the complete M2MCent Zero-LLM utility network ($0.010–$0.250 USDC). Browse the live catalog: api.m2mcent.com/llms-full.txt

@evozim/eliza-plugin-x402 is an official drop-in plugin for ElizaOS. It equips autonomous agents with the ability to consume 1,057 deterministic pay-per-use APIs and Model Context Protocol (MCP) servers on Base Mainnet (eip155:8453) without human intervention.

Whenever an external request returns an HTTP 402 Payment Required response, this plugin intercepts the call, decodes the payment metadata, signs a gasless EIP-3009 TransferWithAuthorization USDC signature, injects it into the headers, and completes the request autonomously.


🏛️ Smart Contracts & Treasury

  • Base Mainnet Escrow Contract: 0x5d47070A36A37DAf417e64FF27a1e5B3F1c84efa
  • Institutional Treasury Safe: 0x8aaBAB75bE8825d0f5D514a9a5cBa04B7bF84920
  • Vouch Trust Index: Grade A (100/100)
  • Post-Quantum Compliance: FIPS 204 ML-DSA-65

⚙️ How it Works under the Hood

sequenceDiagram
    participant Agent as Eliza OS Agent
    participant Service as X402Service (Plugin)
    participant API as M2MCent Gateway (1,062 Nodes)
    participant Escrow as M2MCent Escrow (0x5d47...efa)
    
    Agent->>API: 1. Request Tool / API Call
    API-->>Agent: 2. Response: HTTP 402 Payment Required<br/>(Headers: x-402-price & x-402-contract)
    Note over Service: Intercepts challenge &<br/>decodes metadata
    Service->>Service: 3. Signs EIP-3009 Transfer Auth<br/>(EIP-712 Typed Signature)
    Agent->>API: 4. Retry Request<br/>(Header: Payment-Signature in Base64)
    API->>Escrow: 5. Relays Signature & Settles USDC Gaslessly
    Escrow-->>API: 6. Settlement Confirmed (Atomic)
    API-->>Agent: 7. Response: HTTP 200 with Tool Output

🚀 Installation

npm install @evozim/eliza-plugin-x402
# or using yarn
yarn add @evozim/eliza-plugin-x402
# or using pnpm
pnpm add @evozim/eliza-plugin-x402

🛠️ Configuration

Configure the agent runtime settings or environment variables (.env):

| Variable | Description | Required | Default | | :--- | :--- | :---: | :--- | | EVM_PRIVATE_KEY | Private key of the agent's EVM wallet. Must hold USDC on Base Mainnet. | Yes | - | | EVM_PROVIDER_URL | Base RPC node endpoint URL. | No | https://mainnet.base.org |


📦 Usage

1. Register the Plugin in your Agent

Import and register the plugin inside your Eliza setup (agent/src/index.ts or character file):

import { x402Plugin } from "@evozim/eliza-plugin-x402";

const runtime = new AgentRuntime({
    plugins: [
        x402Plugin
    ]
});

2. Calling Protected Endpoints programmatically

You can invoke the X402Service anywhere in your custom actions or providers:

import { X402Service, X402ServiceType } from "@evozim/eliza-plugin-x402";

const runAction = async (runtime: IAgentRuntime) => {
    const x402Service = runtime.getService<X402Service>(X402ServiceType.X402 as any);
    
    const result = await x402Service.fetchWithPaywall(
        "https://api.m2mcent.com/autonomous-trading-bot-mcp/api/process",
        {
            method: "POST",
            body: JSON.stringify({
                symbol: "ETH",
                rsiPeriod: 14
            })
        }
    );

    if (result.success) {
        console.log("Success! Output:", result.responseBody);
    }
};