x402-payment
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 listfirst.
If no wallets exist, invokebankofai-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.
- Local mode (recommended): set
More from bofai/skills
recharge-skill
BANK OF AI account query and recharge skill. Use for requests like 'recharge 1 usdt', '给 BANK OF AI 充值 1 USDT', or to query BANK OF AI balance/orders. Recharge uses the remote MCP endpoint https://recharge.bankofai.io/mcp with the single `recharge` tool.
82tronscan data lookup
Query TRON blockchain data via the TronScan API — accounts, transactions, tokens, blocks, contracts, transfers, and chain statistics.
80sunperp perpetual futures trading
Trade USDT-margined perpetual futures on SunPerp (TRON) — place orders, manage positions, query market data, and manage account via REST API.
80sunswap dex trading
Execute token swaps, manage liquidity, and query market data on SunSwap DEX via the sun-cli.
78multi-sig & account permissions
Manage TRON multi-sig permissions — configure keys, thresholds, and co-signed proposals.
74trc20 token toolkit
Universal TRC20 token operations — transfer, approve, query balances, and fetch metadata.
69