Skip to content

Add support for x402 v2 #16

Description

@madars

radius-cli 0.1.4 speaks x402 v1 only; can't pay v2 / Permit2 tokens (e.g. SBC). Against an x402 v2 resource server it: reads the 402 body instead of the PAYMENT-REQUIRED header; requires maxAmountRequired (v2 uses amount); sends X-PAYMENT (v2 uses PAYMENT-SIGNATURE); emits a payload missing accepted with numeric validAfter/validBefore (v2 wants strings); and signs EIP-3009, so it fails against tokens that require EIP-2612+Permit2 — including Radius testnet SBC (facilitator returns "EIP-3009 … not supported … use EIP-2612 (permit) instead").

Ask: support x402 v2 transport + honor extra.assetTransferMethod: permit2 when advertised.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions