docs(features): add Gasless Execution intro - #389
docs(features): add Gasless Execution intro#389scout-relayprotocol[bot] wants to merge 2 commits into
Conversation
Add the approved marketing overview for Gasless Execution above the existing technical integration guide. Preserve the detailed API flow while clarifying the user problem, supported account types, and target integrators.\n\nLinear: MAR-1403
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
Claude finished @pedromcunha's task in 2m 48s —— View job Code review — PR #389 (docs: Gasless Execution intro)
Reviewed the 45 added lines ( 1. The stated cost model contradicts the page's own requirements and Caveats
Both frame "fees out of the user's token" as a mode that needs no integrator funding. The rest of the page says otherwise:
And As written, a reader who buys the line-14 promise hits an undocumented funding prerequisite. Suggest making the intro say Relay fronts the origin gas and that origin gas is drawn from your app balance, then let 2. Account-type list overclaims relative to the
|
| Mention | Page that exists | Status |
|---|---|---|
:45 "just-in-time gas" |
/features/gas-top-up |
unlinked, and not the canonical name used anywhere in the docs |
:45 "pay-with-any-token" |
/use-cases/calling ("pay with any token") |
unlinked, non-canonical name |
:47 "price stabilization" |
/features/price-stabilization |
unlinked — solutions/payment-service-providers.mdx:30 links it as **[Price stabilization](/features/price-stabilization)** |
Also missing: /features/gasless-swaps, which already owns the "which gasless approach do I need?" decision tree (features/gasless-swaps.mdx:10). That's the natural companion link for this intro and the one readers most need.
4. "one of four ways" is a hard-coded count that no other page backs
features/gasless-execution.mdx:45
Gasless Execution is one of four ways to get gas out of your users' way, alongside Fee Sponsorship, just-in-time gas, and pay-with-any-token. They combine.
The arithmetic is fine (1 + 3 = 4), but this taxonomy appears nowhere else in the repo, and features/ also contains gasless-swaps.mdx and gas-top-up.mdx, which a reader will reasonably count. A fixed number goes stale the moment a fifth approach ships. Suggest dropping "four" — "Gasless Execution is one of several ways… and they combine" — or pointing at the gasless-swaps decision tree as the canonical list.
5. Page-type profile: this is §3.2 use-case voice on a §3.1 feature guide
Flagging as a judgment call for the doc owner rather than a defect, but it's the largest structural question in the diff.
- §3.1 requires the intro to be one paragraph with definitional framing (
<FeatureName> is a feature that …). Lines 6–22 are a bold tagline, five paragraphs, and a bullet list before the first##. ## Why it matters(:24) and## Who it's for(:39) aren't in the §3.1 profile, whose optional order is Requirements → How to use it? → Caveats.- The bolded lead-in benefit blocks at
:28-37are the §3.2 Benefits block pattern, which §3.2 scopes touse-cases/*.mdx. They also don't match §3.2's own spec ("3–5 bolded lead-ins… No surrounding bullets") — these are bulleted, and "For integrators" has 4 while "For your users" has 3 across two subsections. - §2.4: feature guides are "practical and task-oriented"; positioning-first prose is reserved for use-case guides.
- The single
---at:49fencing marketing off from technical content is a symptom of two page types sharing one file. §2.5 permits HRs between major sections, so this is legal, just telling.
Worth noting solutions/payment-service-providers.mdx:30-34 already carries this positioning and already links here, so some of this is now duplicated. If the goal is a marketing surface, use-cases/ or solutions/ fits the guide better, with this page keeping a one-paragraph definitional intro.
6. "Pair with Fee Sponsorship" is stated three times
Lines 16, 41, and 47 all say to pair with Fee Sponsorship; 1:1 settlement appears at lines 30, 37, 41, and 47. Line 47 is close to a restatement of line 16 with price stabilization added. Collapsing to one mention (line 16) plus the closing line would tighten this noticeably.
7. Minor
- Unquantified superlatives.
:10"That's the state most payers are in" and:28"include most new users" are asserted without support. §2.4 asks for concrete numbers when available —features/price-stabilization.mdx:1301shows the docs do carry real figures (~$0.02 execution fee) — so either cite or soften. - §2.3 voice.
:14"Decouple signing from submitting." is imperative but describes product behavior, not a reader action. §2.3 wants a named subject for definitions: "Relay decouples signing from submitting." - Frontmatter drift.
description: "Submit arbitrary transactions for gasless execution"(:3, unchanged) is about arbitrary EVM execution, while the new lead is about stablecoin payments. The body supports the broader framing; consider whether the lead should too, since:18already walks it back ("covers any EVM transaction, not just payments"). - Feature-name casing. This page uses "Gasless Execution";
solutions/payment-service-providers.mdx:32uses "Gasless execution". §5 doesn't rule on this, but it's worth settling.
Verified clean
[Fee Sponsorship](/features/fee-sponsorship)resolves; root-relative form per §2.6 ✓- Nav wiring intact —
docs.json:47listsfeatures/gasless-execution, redirect atdocs.json:545✓ - No
#H1 in body;##/###only, no deeper nesting (§2.2) ✓ - Terminology: "onchain" one word (
:43), no italics added (§2.9), no callouts added so the 15-line cap is moot ✓ - Technical bullets at
:20-22match the existing accordions — ERC-4337 user operations (:582), gasless 7702 upgrade including "the upgrade itself" (:759-760), and thetx.originconstraint (:855) ✓ - EVM-only scope in the intro is consistent with Caveats
:852✓ - No changes to code blocks; existing fences balanced ✓
I reviewed only content and style-guide conformance — this repo has no lint or test command, so I ran none. The Mintlify preview remains the rendering check.
I made no code changes, since this was a review request.
· scout/MAR-1403-gasless-execution-feature-page
|
|
|
||
| - **Stablecoins are enough.** Pay in the token they hold; no gas tokens or chains to understand. | ||
| - **Sign, don't submit.** Nothing to configure and no transaction to send. | ||
| - **Get 1:1 payments when sponsored.** Send a dollar, and a dollar arrives. |
There was a problem hiding this comment.
Fee Sponsorship does not guarantee 1:1 settlement
This says sponsorship alone ensures that “a dollar arrives,” but sponsorship removes the user’s fee rather than fixing the stablecoin exchange rate. The documented price-stabilization examples show that a sponsored 100 USDC payment can settle as 100.05 or 99.95 USDT, and this page itself correctly states at line 47 that exact 1:1 settlement also requires price stabilization. Revise this to describe sponsored fees without promising an exact received amount, or explicitly require price stabilization for the 1:1 claim.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Artifacts
Focused validation script source
- The captured Python source reads the relevant checked-in pages and asserts the claim, required conjunction, variable sponsorship-only outcomes, and fixed-rate requirement; it makes the validation reproducible.
Candidate claim and sponsorship-only pricing evidence
- The captured command output shows line 37, line 47, and the price-stabilization documentation’s 100, 100.05, and 99.95 USDT sponsorship-only outcomes; it demonstrates the contradiction.
Successful focused validation result
- The executed Python check exited successfully and reports that Fee Sponsorship covers fees but does not guarantee exact 1:1 settlement; it verifies the misleading claim.
Implements MAR-1403: Create Gasless Execution feature page
What this changes
features/gasless-execution.mdx.How I verified
docs.jsonsuccessfully.git diff --checksuccessfully.Open questions
🤖 Opened by Scout (autonomous). Ready for human review.
Linear: https://linear.app/relayprotocol/issue/MAR-1403/create-gasless-execution-feature-page