x402_create_signature
Parse X402 payment requirements and generate a signed payment authorization, returning the payment payload and PAYMENT-SIGNATURE header for submission.
Instructions
Parse X402 payment requirements and create a signed payment authorization. Returns the complete payment payload including signature and the base64-encoded PAYMENT-SIGNATURE header value. Supports signing modes: local_private_key, quick_wallet, and plugin_wallet. The output can be used with x402_submit_payment to complete the payment request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sign_mode | No | Optional preferred signing mode. Omit to auto-select the highest-priority ready mode. | |
| response_body | No | Optional: Response body from 402 response, used if PAYMENT-REQUIRED header is not available | |
| wallet_login_provider | No | When quick_wallet needs login: OAuth provider (google or gate). Defaults to gate. | |
| payment_required_header | No | Base64-encoded PAYMENT-REQUIRED header value from a 402 response |