Skip to content

Commit 2aae3e8

Browse files
jakehobbsclaude
andauthored
docs: add rundler_getUserOperationGasPrice api spec (#1159)
* docs: add rundler_getUserOperationGasPrice api spec Co-Authored-By: Claude <noreply@anthropic.com> * docs: update maxFeePerGas example Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent e40676f commit 2aae3e8

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

src/openrpc/alchemy/bundler/bundler.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,50 @@ methods:
135135
name: Estimated priority fee
136136
value: "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e"
137137

138+
- name: rundler_getUserOperationGasPrice
139+
description: |
140+
Returns gas price recommendations for setting fees in your user operations. The response includes current required fees and suggested fees with buffers for faster inclusion.
141+
params: []
142+
result:
143+
name: Gas price recommendation
144+
description: Gas price recommendation containing current fees and suggested fees with buffers.
145+
schema:
146+
type: object
147+
required: ["currentPriorityFee", "baseFee", "blockNumber", "suggested"]
148+
properties:
149+
currentPriorityFee:
150+
type: string
151+
description: The current minimum priority fee required by the bundler (same as `rundler_maxPriorityFeePerGas`).
152+
baseFee:
153+
type: string
154+
description: The current pending base fee for the next block (without bundler overhead).
155+
blockNumber:
156+
type: string
157+
description: The block number this estimate is based on.
158+
suggested:
159+
type: object
160+
description: Suggested fees with configurable buffers for faster inclusion.
161+
required: ["maxPriorityFeePerGas", "maxFeePerGas"]
162+
properties:
163+
maxPriorityFeePerGas:
164+
type: string
165+
description: Priority fee with buffer above the current minimum (default 30% buffer).
166+
maxFeePerGas:
167+
type: string
168+
description: Bundler-inflated base fee with buffer plus suggested priority fee (default 50% base fee buffer).
169+
examples:
170+
- name: rundler_getUserOperationGasPrice example
171+
params: []
172+
result:
173+
name: Gas price recommendation
174+
value:
175+
currentPriorityFee: "0x59682f00"
176+
baseFee: "0x165a0bc00"
177+
blockNumber: "0x12a3b4c"
178+
suggested:
179+
maxPriorityFeePerGas: "0x746a5280"
180+
maxFeePerGas: "0x28CDB6C80"
181+
138182
- name: eth_getUserOperationReceipt
139183
description: |
140184
Get the `UserOperationReceipt` based on the `userOpHash`.

0 commit comments

Comments
 (0)