doc: document public RPC request body size limits#77
Merged
Conversation
Contributor
There was a problem hiding this comment.
✅ Clean
- Reviewed the three new/updated pages:
docs/dev/read/overview.md,docs/dev/read/rpc/error-codes.md, anddocs/dev/send-tx/gas-estimation.md. - Frontmatter, sentence-per-line prose, relative
.mdcross-links, and the#request-body-limitsanchor all conform to the layer conventions indocs/AGENTS.mdanddocs/dev/AGENTS.md. - The 1.5 MiB / 128 KiB values appear in both
overview.mdandgas-estimation.md, but that is consistent with the layer style rule on self-contained pages and the gas-estimation page links back to the canonical table — not flagged as duplication. - No new actionable findings. Still open from earlier reviews: none.
Contributor
There was a problem hiding this comment.
🧭 Re-review update
- Reviewed the incremental change since the prior review (commit
045afcc): prettier reformatted table column padding indocs/dev/read/overview.mdanddocs/dev/read/rpc/error-codes.md. Content, links, and anchors are unchanged. - No new actionable findings.
- Still open from earlier reviews: none.
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.
Summary
The public MegaETH RPC endpoint enforces request body size limits that vary by method class, but this behavior was not documented. Developers deploying large contracts could hit an undocumented
413/-32099(payload too large) rejection when estimating gas or simulating calls with full-size initcode.This adds documentation for the three body-size tiers and the associated error:
docs/dev/read/overview.md— new Request Body Limits section: 2.5 MiB for transaction submission, 1.5 MiB for large reads/simulations (eth_call,eth_callMany,eth_createAccessList,eth_estimateGas), and 128 KiB for all other methods.docs/dev/read/rpc/error-codes.md— new413/-32099(payload too large) row.docs/dev/send-tx/gas-estimation.md— note that gas estimation for large deployments sends full initcode and is allowed up to the 1.5 MiB large-read limit.Test plan
#request-body-limitsanchor resolve (lychee link check in CI).This PR was generated by an automated agent.