pay-with-app

Settle HTTP 402 payment challenges via EIP-3009 signatures on X Layer.

Updated May 2, 2026
One-click install
npx skills add https://github.com/nickthelegend/obolus-expo-app --skill pay-with-app
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pay-with-app
Source: https://github.com/nickthelegend/obolus-expo-app/tree/main/.agents/skills/pay-with-app
Command: npx skills add https://github.com/nickthelegend/obolus-expo-app --skill pay-with-app

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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.

Frequently Asked Questions about pay-with-app

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I settle an HTTP 402 payment challenge on X Layer?

To settle an HTTP 402 payment challenge on X Layer, you need to generate an EIP-3009 TransferWithAuthorization signature and submit it via the X-PAYMENT header. This process is fully automated by the skill, including wallet balance checks and cross-chain token funding via the Uniswap Trading API.

What is the OKX Agent Payments Protocol and how does x402 work?

The OKX Agent Payments Protocol uses the x402 standard to require payment for API access via HTTP 402 challenges. It enables zero-gas on-chain settlement on X Layer by accepting EIP-3009 TransferWithAuthorization signatures submitted through the X-PAYMENT header.

Can I use Uniswap to bridge tokens to X Layer for API payments?

Yes, you can bridge tokens to X Layer for API payments using the Uniswap Trading API. The skill automatically routes and bridges required assets like USDT0 from any supported chain if your wallet lacks the necessary balance, subject to user confirmation gates.

Does settling OKX x402 challenges on X Layer require gas fees?

Settling OKX x402 challenges on X Layer requires zero gas fees. The settlement gas is fully sponsored by OKX's facilitator when you submit the compliant EIP-3009 TransferWithAuthorization signature via the X-PAYMENT header.

What happens if my wallet lacks USDT0 for an X Layer 402 payment?

If your wallet lacks USDT0 for an X Layer 402 payment, the skill automatically handles cross-chain token funding. It uses the Uniswap Trading API to route and bridge the required tokens to X Layer, provided you approve the transaction confirmation gates.

Can I process non-X-Layer HTTP 402 challenges with this approach?

You cannot process non-X-Layer HTTP 402 challenges with this approach. The skill strictly processes x402 payment requirements specifically for X Layer (chain 196) from OKX's Agent Payments Protocol and refuses unsupported schemes and non-X-Layer challenges.