What problem does it solve?
This Skill eliminates the complex manual work of paying HTTP 402 payment challenges from OKX's Agent Payments Protocol on X Layer, handling end-to-end workflow steps including wallet balance verification, cross-chain token funding, EIP-3009 signature generation, and payment settlement, so users don't have to navigate fragmented blockchain tooling to access X Layer APIs.
Core Features & Use Cases
- X Layer 402 Challenge Processing: Automatically detects and processes x402 payment requirements specifically for X Layer (chain 196) from OKX's Agent Payments Protocol (APP), refusing unsupported schemes and non-X-Layer challenges.
- Cross-Chain Funding Automation: Routes and bridges tokens from any supported chain to X Layer via the Uniswap Trading API if the user's wallet lacks the required asset (typically USDT0), with clear user confirmation gates for every transaction step.
- Secure Zero-Gas Settlement: Generates compliant EIP-3009 TransferWithAuthorization signatures and submits them via the X-PAYMENT header, with settlement gas fully sponsored by OKX on X Layer.
Use Case: If you are a developer building agentic tools or applications that interact with OKX-backed X Layer APIs returning 402 payment requirements, this Skill automates the entire payment flow so you can focus on core application logic instead of manual crypto payment operations.
Quick Start
Invoke the pay-with-app skill with a 402 challenge response from an X Layer API to automatically handle funding, signing, and payment settlement end-to-end.