Skip to content

x402: add payWithX402 method to SharpyClient for agentic invoice payments #23

Description

@MarcusDavidG

x402 enables AI agents and HTTP clients to pay Sharpy invoices without a wallet UI by using signed Soroban auth entries.

Implementation:

  • Install x402-stellar npm package
  • Add payWithX402(invoiceId: number, payerAddress: string, facilitatorUrl: string) to SharpyClient
  • Add x402 facilitator URLs to NETWORKS constant (Coinbase testnet, OpenZeppelin mainnet)
  • Export x402 helpers from SDK index

Reference: https://developers.stellar.org/docs/build/agentic-payments/x402
npm: https://www.npmjs.com/package/x402-stellar

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthighComplex feature or refactor (200 pts)

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions