Repository navigation
feat(inbox): gasless inbox sends via relay sponsorPayment - #1103
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
landing-page | 5368e6c | Commit Preview URL Branch Preview URL |
Oct 02 2026, 04:32 AM |
… the service binding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Gasless inbox sends.
X402_SPONSOR_FEE_PAYER(optional env var): when set, the inbox 402 advertisesextra.feePayer: <address>. x402-stacks clients (>=2.1.0) then sign a sponsored sBTC transfer with fee 0. When unset, the 402 is unchanged and senders pay their own gas.env.X402_RELAY.sponsorPayment(txHex, settle)(feat: sponsor x402 payments over the service binding only, sign and broadcast in one step x402-sponsor-relay#436). The relay sponsors and broadcasts, or refuses with a code:INSUFFICIENT_FUNDS→ 402RATE_LIMITED→ 429 (new)SENDER_NONCE_CONFLICT→ 409BROADCAST_FAILED→ 502, counted toward the circuit breakerSPONSOR_EXHAUSTED→RELAY_ERROR; it was mapped to the sender'sINSUFFICIENT_FUNDSsubmitPaymentqueue path and the HTTP/relayfallback are no longer used for inbox payments. A sponsored payment with no binding is refused./settleas before.Deploy after the relay PR. Set
X402_SPONSOR_FEE_PAYERto the relay's sponsor address once the relay is live; unset it to turn gasless sends off.Inbox tests: 446 passing.