Skip to content

Commit f42fa6a

Browse files
authored
docs: update flashblock doc (#2018)
* docs: update flashblock doc * fix: redundant tag
1 parent 827dc6d commit f42fa6a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

aa-sdk/core/src/actions/smartAccount/waitForUserOperationTransacation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { clientHeaderTrack } from "../../index.js";
2424
* @param {Client<TTransport, TChain, any>} client_ The client instance used to interact with the blockchain
2525
* @param {WaitForUserOperationTxParameters} args The parameters for the transaction to wait for
2626
* @param {Hex} args.hash The transaction hash to wait for
27+
* @param {string} args.tag The tag to use for the UO status. "pending" or "latest". Defaults to "latest".
2728
* @param {WaitForUserOperationTxParameters["retries"]} [args.retries] Optional retry parameters
2829
* @param {number} [args.retries.maxRetries] The maximum number of retry attempts
2930
* @param {number} [args.retries.intervalMs] The interval in milliseconds between retries

docs/specs/openrpc/bundler/bundler.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ methods:
127127
description: The `userOpHash` of the `UserOperation` to get the receipt for (as returned by `eth_sendUserOperation`).
128128
schema:
129129
$ref: "../_shared_wallets/components.yaml#/components/schemas/hash32"
130+
- name: tag
131+
required: false
132+
description: The blocktag for checking the UO status. \"pending\" or \"latest\". Defaults to \"latest\".".
133+
schema:
134+
type: string
135+
enum: ["pending", "latest"]
130136
result:
131137
name: UserOperationReceipt
132138
description: "`UserOperationReceipt` object representing the outcome of a `UserOperation`."
@@ -145,6 +151,7 @@ methods:
145151
"reason",
146152
"logs",
147153
"receipt",
154+
"status",
148155
]
149156
properties:
150157
userOpHash:
@@ -290,6 +297,9 @@ methods:
290297
type:
291298
type: string
292299
description: The type of the transaction.
300+
status:
301+
type: string
302+
description: The status of the `UserOperation`. Could be \"Mined\" or \"Preconfirmed\"."
293303
examples:
294304
- name: eth_getUserOperationReceipt example
295305
params:
@@ -313,6 +323,7 @@ methods:
313323
blockHash: "0x58a945e1558810523df00490ff28cbe111b37851c44679ce5be1eeaebb4b4907"
314324
blockNumber: "0xeb8822"
315325
transactionIndex: "0x4e"
326+
status: "Mined"
316327

317328
- name: eth_supportedEntryPoints
318329
description: |

0 commit comments

Comments
 (0)