docs: document fixed gas price and per-operation gas costs - #240
Draft
claude[bot] wants to merge 3 commits into
Draft
docs: document fixed gas price and per-operation gas costs#240claude[bot] wants to merge 3 commits into
claude[bot] wants to merge 3 commits into
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LFS56yZWWCu1wSa3jjzFjZ
Precompile pages now state only gas costs in gas units; the fixed 1 gwei price and fee RPC details live solely in the Getting Started Gas section. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LFS56yZWWCu1wSa3jjzFjZ
Gas is no longer documented as a flat 21,000 per transaction: simple transfers stay at 21,000 gas, and each precompile page now lists its per-operation costs (orderbook 40k/30k/25k, bridge withdraw 50k, auction submitBid 25k, recovery recover 100k). Pricing (1 gwei, fee RPCs) is unchanged and stays on the Getting Started page. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LFS56yZWWCu1wSa3jjzFjZ
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.
Requested by Shresth Agrawal · Slack thread
Before
The docs never state the gas price, and no precompile page says what its calls cost in gas.
After
eth_gasPrice,baseFeePerGasin blocks andeth_feeHistory);eth_estimateGasworks as-is; there is no priority fee or tip (eth_maxPriorityFeePerGasis always0); gas is charged per operation — simple transfers cost 21,000 gas, with per-operation costs listed under Precompiles.submitOrder/submitTrigger40,000;update/updateTrigger30,000;cancel/cancelTrigger25,000;deposit,withdraw, and any other call 21,000.submitBatchcosts the sum of its inner intents' costs (minimum 21,000);delegatedstays gas-exempt.withdraw50,000; any other call 21,000; deposits are credited by the network and cost the user nothing on Pod.submitBid25,000.recover100,000, plus 21,000 gas per intermediate account when funds already moved through earlier recoveries.Note: the per-operation costs reflect an upcoming network upgrade — this PR should merge once that rolls out.
Files touched
doc/api-reference/README.mddoc/api-reference/applications-precompiles/README.mddoc/api-reference/applications-precompiles/orderbook.mddoc/api-reference/applications-precompiles/bridge.mddoc/api-reference/applications-precompiles/recovery.mddoc/api-reference/applications-precompiles/wip-optimistic-auctions.md🤖 Generated with Claude Code
https://claude.ai/code/session_01LFS56yZWWCu1wSa3jjzFjZ
Generated by Claude Code