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

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

    enhancementNew feature or requesthighComplex feature or refactor (200 pts)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions