x402-payment

Installation
SKILL.md

x402 Payment Skill

Invoke x402-enabled AI agent endpoints with automatic token payments on both TRON (TRC20) and EVM-compatible (ERC20) chains.

Overview

The x402-payment skill enables agents to interact with paid API endpoints. When an agent receives a 402 Payment Required response, this skill handles the negotiation, signing, and execution of the payment using the x402_invoke tool.

This release is aligned with @bankofai/x402@0.5.9, including Exact V2-compatible payload generation for EVM and TRON.

Prerequisites

Wallet required: Run agent-wallet list first.
If no wallets exist, invoke bankofai-guide (Section C — Wallet Guard) before proceeding.

  • Wallet Configuration (agent-wallet):
    • Local mode (recommended): set AGENT_WALLET_PASSWORD (required), AGENT_WALLET_DIR (optional).
    • Static mode (env): set exactly one of AGENT_WALLET_PRIVATE_KEY / AGENT_WALLET_MNEMONIC.
    • Optional for mnemonic mode: AGENT_WALLET_MNEMONIC_ACCOUNT_INDEX.
Related skills
Installs
81
Repository
bofai/skills
GitHub Stars
70
First Seen
Mar 3, 2026