x402-payment

Official

Automatically pay x402 endpoints on TRON/EVM.

AuthorBofAI
Version1.0.0
Installs0

System Documentation

What problem does it solve?

x402-payment resolves 402 Payment Required flows by automatically negotiating, signing, and submitting token payments so your AI agent can finish protected API requests without manual intervention.

Core Features & Use Cases

  • Automatic 402 handling: Detects payment requirements and performs the required payment flow using the x402 mechanisms.
  • Cross-chain token payments: Supports TRON (TRC20 USDT/USDD) and EVM (ERC20 USDT/USDC) with network-specific routing.
  • GasFree support for gasless payments: Prefers exact_gasfree when available and provides wallet info and activation flows to make gasless execution possible.
  • Use case: An AI agent calls a protected endpoint that returns 402; this skill then pays the required amount from the configured Agent Wallet and returns the final response body for continued task execution.

Quick Start

Use the x402-payment skill to pay a protected TRON Nile endpoint by asking: "Invoke x402-payment with URL https://x402-demo.bankofai.io/protected-nile, network nile, and entrypoint chat, passing input {prompt: 'hello'}."

Dependency Matrix

Required Modules

@bankofai/x402@bankofai/agent-wallettronweb

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: x402-payment
Download link: https://github.com/BofAI/skills/archive/main.zip#x402-payment

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.