okx-x402-payment

Signs x402 payment authorization and returns proof for accessing a resource.

1|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/gist-kol-copy-trade-agent/agent-system --skill okx-x402-payment-gist-kol-copy-trade-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: okx-x402-payment
Source: https://github.com/gist-kol-copy-trade-agent/agent-system/tree/main/okx-onchainos-skills/okx-x402-payment
Command: npx skills add https://github.com/gist-kol-copy-trade-agent/agent-system --skill okx-x402-payment-gist-kol-copy-trade-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Sign an x402 payment authorization and return the payment proof for accessing a payment-gated resource.

Core Features & Use Cases

  • Wallet-session-based TEE signing for x402 payments or fallback to local EVM private-key signing.
  • Support for both v1 and v2 x402 payloads and automatic header assembly.
  • Safe replay of the original request with the correct PAYMENT-SIGNATURE or X-PAYMENT header to complete the workflow.

Quick Start

Ask the assistant to sign an x402 payment for a given resource and return the payment proof.

Frequently Asked Questions about okx-x402-payment

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

FAQPage Schema
How do I sign an x402 payment authorization for a payment-gated resource?

To sign an x402 payment authorization, you can use wallet-session-based TEE signing or local EVM private-key signing. The skill processes the payload, assembles the correct headers, and returns the payment proof to access the gated resource.

What is the difference between v1 and v2 x402 payment payloads?

V1 and v2 x402 payloads dictate the structure of the payment authorization data. This skill automatically detects, parses, and supports both payload versions, ensuring the correct PAYMENT-SIGNATURE or X-PAYMENT header is assembled for the specific version encountered.

Can I use local EVM private keys instead of TEE for x402 signing?

Yes, you can use local EVM private keys for x402 signing as a fallback to wallet-session-based TEE signing. This allows you to generate the required payment proof directly from your local keys when TEE wallet sessions are unavailable.

How do I replay an original request with an x402 payment header?

To replay an original request with an x402 payment header, the skill attaches the assembled PAYMENT-SIGNATURE or X-PAYMENT header to your initial request. It safely replays the request to complete the workflow and grant access to the payment-gated resource.

Does x402 payment signing work with EIP-3009 onchain authorization?

Yes, x402 payment signing is compatible with EIP-3009 onchain authorization standards. It handles the necessary signing mechanisms to generate the payment proof required for accessing resources gated by this onchain transfer protocol.