Skip to content

feat(x402): sign sponsored payments when the endpoint offers gas sponsorship - #715

Merged
biwasxyz merged 1 commit into
mainfrom
feat/x402-sponsored-payments
Oct 14, 2026
Merged

biwasxyz merged 1 commit into
mainfrom
feat/x402-sponsored-payments

Conversation

@biwasxyz

Copy link
Copy Markdown
Collaborator
  • extra.sponsored === true on the selected 402 option → build the payment tx with sponsored: true, fee: 0 (sBTC and STX)
  • spend limiter books no STX fee for sponsored payments
  • PaymentRequirements passed to onBeforePayment gains sponsored; execute_x402_endpoint skips the STX-for-fee balance check when sponsored
  • test: sponsored 402 books only the token amount

🤖 Generated with Claude Code

…sorship

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@biwasxyz
biwasxyz merged commit c7fb05b into main Oct 14, 2026
5 checks passed
@biwasxyz
biwasxyz deleted the feat/x402-sponsored-payments branch October 14, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant