Skip to main content
x402 on Stellar requires that a wallet can sign authorization entries on a Soroban transaction, not just the full transaction envelope. This is the same interface Soroban dApps use for scoped auth; not every Stellar wallet supports it yet.

Supported wallets

The required interface

The SDK expects a signAuthEntries(entries: xdr.SorobanAuthorizationEntry[]): Promise<xdr.SorobanAuthorizationEntry[]> method on the wallet adapter. In-browser wallets typically expose it on window.<wallet>; SDK adapters wrap it in a common shape.

Detecting a wallet

Signing raw transactions (not enough)

A wallet that can only sign a whole transaction envelope cannot be used with x402. The scoped auth signature is the security property that keeps the facilitator from altering the amount or destination; giving up scope defeats the point.

Adding a new wallet

  1. Implement the adapter interface.
  2. PR it to @stellarx402/wallets.
  3. Include a Playwright test that goes end-to-end through the buyer quickstart.