pay-for-service
Installation
SKILL.md
Paying for x402 Services
Use npx agnic@latest x402 pay to call x402-enabled API endpoints with automatic USDC payment on Base.
Authentication
Run npx agnic@latest status --json to verify. If not authenticated:
- Headless (CI/server/agent): Set
AGNIC_TOKENenv var or pass--token <token> - Interactive (has browser): Run
npx agnic@latest auth login
See the authenticate-wallet skill for details.
Command Syntax
npx agnic@latest x402 pay <url> [-X <method>] [-d <json>] [-q <params>] [-h <json>] [--max-amount <n>] [--json]
See reference/x402-protocol.md for full options, USDC amounts, and input validation rules.
Related skills
More from agnicpay/agnic-wallet-skills
get-agent-identity
>
11authenticate-wallet
>
9check-balance
>
8fund-wallet
>
8search-for-service
>
8send-usdc
Send USDC to an Ethereum address or ENS name. Use when you or the user want to send money, pay someone, transfer USDC, tip, donate, or send funds to a wallet address or .eth name. Covers phrases like "send $5 to", "pay 0x...", "transfer to vitalik.eth", "tip someone", "send USDC".
7