Skip to content
OpenSmartRoute
Skillv1.0.0

superpaymaster

Gasless transactions and micropayments for Web3 agents. ERC-4337 gas sponsorship, x402 payment facilitation, streaming micropayments via payment channels.

by AAStarCommunity(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from AAStarCommunity/SuperPaymaster (SKILL.md). Install upstream with npx skills add AAStarCommunity/SuperPaymaster. Copyright stays with the author (MIT).

SuperPaymaster

Decentralized gas payment infrastructure for Web3 agents and dApps. Provides gas sponsorship via community tokens (xPNTs), x402 payment facilitation, and streaming micropayment channels.

Quick Start

pnpm add @superpaymaster/sdk
import { createSuperPaymasterClient } from "@superpaymaster/sdk";

const client = createSuperPaymasterClient({
  network: "base-sepolia",
  operatorUrl: "https://your-operator.example.com",
});

Capabilities

1. Gas Sponsorship (ERC-4337)

Sponsor gas fees for users via community tokens instead of ETH.

// Check if a user is eligible for gas sponsorship
const eligible = await client.isEligibleForSponsorship(userAddress);

// Get paymaster data for a UserOperation
const paymasterData = await client.getPaymasterData(userOp, {
  community: "your-community",
});

2. x402 Payment Settlement

HTTP 402-based payments for API access and agent services.

// Settle a USDC payment via EIP-3009
const result = await client.settleX402Payment({
  from: payerAddress,
  to: payeeAddress,
  asset: "USDC",
  amount: "1000000", // 1 USDC
  signature: payerSignature,
});

3. Micropayment Channels

Streaming payments with off-chain vouchers and on-chain settlement.

// Open a payment channel
const channel = await client.openChannel({
  recipient: serviceAddress,
  token: "USDC",
  totalDeposit: "10000000", // 10 USDC
  duration: 3600, // 1 hour
});

// Sign a micropayment voucher (off-chain, instant)
const voucher = await client.signVoucher(channel.id, "100000"); // 0.1 USDC

4. Agent Identity (ERC-8004)

Register and verify agent identity for reputation-based sponsorship.

// Check agent registration
const isAgent = await client.isRegisteredAgent(agentAddress);

// Get sponsorship rate for an agent
const rate = await client.getAgentSponsorshipRate(agentAddress, operatorAddress);

Resources

Contract Addresses (Sepolia)

  • SuperPaymaster: 0x829C3178DeF488C2dB65207B4225e18824696860
  • MicroPaymentChannel: 0x5753e9675f68221cA901e495C1696e33F552ea36
  • aPNTs Token: 0xEA4b9d046285DC21484174C36BbFb58015Ad5E1f

API Endpoints

  • GET /health — Operator status
  • POST /verify — Verify payment signature (~100ms)
  • POST /settle — Execute on-chain settlement
  • GET /quote — Fee rate and supported assets
  • GET /.well-known/x-payment-info — x402 discovery

Documentation

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/aastarcommunity-superpaymaster-superpaymaster/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

aastarcommunity-superpaymaster-superpaymaster.ocm.jsonjson
{
  "ocm": "1",
  "id": "aastarcommunity-superpaymaster-superpaymaster",
  "kind": "skill",
  "name": "superpaymaster",
  "description": "Gasless transactions and micropayments for Web3 agents. ERC-4337 gas sponsorship, x402 payment facilitation, streaming micropayments via payment channels.",
  "publisher": "AAStarCommunity",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "web3",
      "payments",
      "gas-sponsorship",
      "x402",
      "erc-4337",
      "micropayments",
      "agent-economy",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Gasless transactions and micropayments for Web3 agents. ERC-4337 gas sponsorship, x402 payment facilitation, streaming micropayments via payment channels."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/AAStarCommunity/SuperPaymaster",
      "path": "SKILL.md",
      "ref": "ba0214aa79690a8bf3711934cf14bf4a7b9a9eb6",
      "url": "https://github.com/AAStarCommunity/SuperPaymaster/blob/ba0214aa79690a8bf3711934cf14bf4a7b9a9eb6/SKILL.md",
      "key": "AAStarCommunity/SuperPaymaster/SKILL.md"
    },
    "license": "MIT"
  },
  "instructions": "# SuperPaymaster\n\nDecentralized gas payment infrastructure for Web3 agents and dApps. Provides gas sponsorship via community tokens (xPNTs), x402 payment facilitation, and streaming micropayment channels.\n\n## Quick Start\n\n```bash\npnpm add @superpaymaster/sdk\n```\n\n```typescript\nimport { createSuperPaymasterClient } from \"@superpaymaster/sdk\";\n\nconst client = createSuperPaymasterClient({\n  network: \"base-sepolia\",\n  operatorUrl: \"https://your-operator.example.com\",\n});\n```\n\n## Capabilities\n\n### 1. Gas Sponsorship (ERC-4337)\nSponsor gas fees for users via community tokens instead of ETH.\n\n```type",
  "cost": {
    "context_tokens": 657
  }
}

Fetch it by URL: GET /api/v1/registry/aastarcommunity-superpaymaster-superpaymaster/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.