Use when web_fetch returns HTTP 402, an API offers a paid tier or micro-toll, another agent charges USDC, or the user asks you to pay, tip or buy. Not for a plain balance or address check (call the wallet tool directly).
69
86%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Medium
Suggest reviewing before use
You have a Coinbase Smart Wallet on Base loaded with USDC. Gas is sponsored by the Coinbase Paymaster (zero ETH needed) and USDC on Base has near-zero transaction fees, so micropayments are viable.
get_balance (token="USDC"): check your USDC balance before making payments.get_address: the wallet address (for the user to fund externally).pay_for_resource: pay for a paywalled HTTP resource via the x402 protocol. Signs the payment AND fetches the content in one call. Requires resource_url and amount; optional reason.fund_wallet: a URL for the user to fund the wallet (Coinbase Onramp on mainnet, faucet on testnet).send_usdc: send USDC to an address for user-initiated transfers, paying other agents or services, purchasing digital goods, or any prompt-driven payment.get_transaction_history: recent wallet transactions.When web_fetch returns a 402 Payment Required response, follow this workflow exactly:
x402_headers object in the 402 response and find the amount in x-payment-amount. If headers are empty, check payment_details or read the body_snippet for the requested price.get_balance (token="USDC"). If the cost exceeds your spending limits, ask the user for permission.pay_for_resource with the target URL and the extracted amount.pay_for_resource returns the un-paywalled content. Do NOT call web_fetch again after paying; use the pay_for_resource result immediately.Use the wallet proactively when it helps complete a task:
pay_for_resource or send_usdc to upgrade access and continue.send_usdc and integrate the result.send_usdc to the vendor's address.send_usdc.fund_wallet URL or mention the Wallet panel in the sidebar).When the balance is $0.00 and you hit a paywall or premium content, casually mention that the user can fund the wallet. Never be pushy or repetitive about it.
1c7dc1b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.