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

@erudite-intelligence/x402-doge

v1.0.0

Published

x402 Payment Protocol V2 - Dogecoin Network Plugin. UTXO-based DOGE payments for AI agents and web services.

Readme

@erudite-intelligence/x402-doge

x402 Payment Protocol V2 — Dogecoin Plugin

The first x402 implementation for Dogecoin. P2PKH-based DOGE payments for AI agents and web services.

Published by Erudite Intelligence LLC under the @erudite-intelligence npm org.


Overview

This package implements the exact payment scheme for the x402 protocol on Dogecoin. Dogecoin is a Bitcoin fork that does not support SegWit, so payments use P2PKH (legacy) addresses and raw signed transactions.

Network: Dogecoin (DOGE)
Scheme: exact
CAIP-2: bip122:1a91e3dace36e2be3bf030a65679fe8 (mainnet)
Unit: koinu (1 DOGE = 100,000,000 koinu)
Address format: P2PKH (D... addresses only)


Install

npm install @erudite-intelligence/x402-doge

Usage

Client (Payer)

const { createPayment } = require("@erudite-intelligence/x402-doge");

const payload = await createPayment(
  {
    scheme: "exact",
    network: "bip122:1a91e3dace36e2be3bf030a65679fe8",
    amount: "100000000",     // 1 DOGE in koinu
    asset: "DOGE",
    payTo: "DMerchantAddress...",
    maxTimeoutSeconds: 120,
  },
  {
    privateKey: "your-wif-or-hex-private-key",
    utxos: [
      {
        txid: "abc123...",
        vout: 0,
        value: 500000000,          // 5 DOGE in koinu
        scriptPubKey: "76a914..."  // P2PKH script hex (required for signing)
      }
    ],
  }
);

Important: Unlike SegWit (Litecoin/Bitcoin), Dogecoin P2PKH signing requires the scriptPubKey hex of each UTXO. Your wallet/UTXO provider must supply this.

Server (Facilitator)

const { verifyPayment, settlePayment } = require("@erudite-intelligence/x402-doge");

const result = await verifyPayment(
  paymentPayload,
  expectedPayTo,
  expectedAmount,
  expectedNetwork
);

if (result.isValid) {
  const settlement = await settlePayment(paymentPayload, expectedNetwork);
}

Dogecoin-Specific Notes

  • No SegWit support — all addresses are D... (P2PKH)
  • Block time ~1 minute
  • Transaction version 1 (not 2)
  • Default fee rate: 100 koinu/vB
  • API: chain.so (primary) + blockcypher (fallback)

Related Packages


Erudite Intelligence LLC — Building the x402 ecosystem beyond EVM and Solana.