What problem does it solve? Merchants using OKX's Agent Payments Protocol (APP) on X Layer return HTTP 402 payment challenges that require a signed EIP-3009 TransferWithAuthorization to unlock the resource. This Skill automates parsing the challenge, funding the wallet with the requested stablecoin, signing the authorization, and retrying the request with a valid X-PAYMENT header. ## Core Features & Use Cases - 402 Challenge Parsing and Validation: Extracts and validates x402 v1 challenges, enforcing the exact scheme, chain 196 network, positive amounts, and strict input sanitization. - Cross-Chain Funding via Uniswap Trading API: Detects insufficient balances and routes or bridges funds into USDT0, USDG, or USDC on X Layer with per-transaction confirmation gates. - EIP-3009 Signing and Settlement: Builds the typed-data signature with byte-exact EIP-712 domain values, assembles the X-PAYMENT payload, and retries the original request for zero-gas settlement. - Use Case: An AI agent hits a 402 paywall on an X Layer API priced in USDT0. The Skill checks the wallet balance, funds it if needed, obtains user confirmation, signs the authorization, and completes the paid request. ## Quick Start Ask the agent to pay the 402 challenge returned by an X Layer merchant URL using this skill with your PRIVATE_KEY environment variable set.