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-tron

v1.0.0

Published

x402 payment scheme plugin for Tron (TRC-20 USDT) — enables x402 agentic payments on the Tron network via TronTransferAuthorization wrapper contract

Downloads

19

Readme

@erudite/x402-tron

x402 payment scheme plugin for Tron (TRC-20 USDT)

The first x402 facilitator implementation on the Tron network. Enables HTTP 402 agentic payments using USDT TRC-20 through the TronTransferAuthorization wrapper contract.

Built by Erudite Intelligence LLC — FinCEN MSB Registered.

Quick Start

For Facilitator Operators (Server Side)

import { registerExactTronScheme } from "@erudite/x402-tron/exact/server";

// Register Tron support with your x402 facilitator
registerExactTronScheme(server, {
  tronWebConfig: {
    fullHost: "https://api.trongrid.io",
    privateKey: process.env.FACILITATOR_PRIVATE_KEY,
  },
});

For AI Agents / Payers (Client Side)

import { createPayment, encodePaymentHeader } from "@erudite/x402-tron/exact/client";

// Create a signed payment
const payment = await createPayment({
  privateKey: "YOUR_PRIVATE_KEY",
  to: "MERCHANT_TRON_ADDRESS",
  amount: "1000000", // 1 USDT (6 decimals)
});

// Send as X-PAYMENT header
const header = encodePaymentHeader(payment);
const response = await fetch(url, {
  headers: { "X-PAYMENT": header },
});

Contract Details

| Field | Value | |-------|-------| | Contract | THGkLBrLY1G5VovZjjK1jP9upyxRdMNL3b | | Chain | Tron Mainnet | | Token | USDT TRC-20 (TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t) | | Protocol Fee | 0.25% (immutable, on-chain) | | Facilitator | http://49.13.47.185:3000 |

Fees

  • Protocol fee: 0.25% — hardcoded on-chain, immutable, no admin override
  • No monthly fees, no signup fees, no minimum volume
  • Compare: Stripe 2.9% + $0.30, PayPal 2.99%

USDT Amount Reference

| USDT | Raw Value | |------|-----------| | $0.01 | 10000 | | $0.10 | 100000 | | $1.00 | 1000000 | | $10.00 | 10000000 | | $100.00 | 100000000 |

API

Server (Facilitator)

import { registerExactTronScheme, verifyPayment, settlePayment } from "@erudite/x402-tron/exact/server";
  • registerExactTronScheme(server, config) — Register scheme with facilitator
  • verifyPayment(payload, expectedTo, expectedAmount, config) — Verify authorization
  • settlePayment(payload, config) — Execute on-chain settlement

Client (AI Agent / Payer)

import { createPayment, payFor, encodePaymentHeader } from "@erudite/x402-tron/exact/client";
  • createPayment(options) — Create signed payment authorization
  • payFor(paymentRequired, privateKey) — Auto-pay from a 402 response
  • encodePaymentHeader(payload) — Encode for X-PAYMENT header

Testing

Check facilitator health:

curl http://49.13.47.185:3000/health

License

MIT — Erudite Intelligence LLC © 2026