Skip to content

Conversation

@linnall
Copy link
Collaborator

@linnall linnall commented Oct 1, 2025

Pull Request Checklist


PR-Codex overview

This PR introduces the waitForUserOperationReceipt function to the aa-sdk, allowing users to wait for the confirmation of user operation transactions by checking the receipt periodically. It also includes documentation for this new function.

Detailed summary

  • Added export for waitForUserOperationReceipt in index.ts.
  • Implemented waitForUserOperationReceipt function in waitForUserOperationReceipt.ts.
  • Added JSDoc comments detailing function usage, parameters, and return types.
  • Included example usage in documentation.
  • Defined type parameters and arguments for the function.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Oct 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
aa-sdk-ui-demo Ready Ready Preview Comment Oct 2, 2025 0:04am

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new function waitForUserOperationReceipt to the aa-sdk core library that waits for a user operation transaction to be confirmed by periodically checking for its receipt with configurable retry parameters.

Key changes:

  • Introduces a new utility function for polling transaction receipts with exponential backoff and jitter
  • Exports the new function from the core module's public API
  • Adds comprehensive documentation for the new function

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
aa-sdk/core/src/actions/smartAccount/waitForUserOperationReceipt.ts Implements the core polling logic with retry mechanism and error handling
aa-sdk/core/src/index.ts Exports the new function from the public API
docs/pages/reference/aa-sdk/core/src/variables/waitForUserOperationReceipt.mdx Auto-generated documentation for the new function


Defined in: [aa-sdk/core/src/actions/smartAccount/waitForUserOperationReceipt.ts:34](https://github.com/alchemyplatform/aa-sdk/blob/16e1a5e9611a91954d1f60415c45d4b23995e984/aa-sdk/core/src/actions/smartAccount/waitForUserOperationReceipt.ts#L34)

Waits for a user operation transaction to be confirmed by checking the receipt periodically until it is found or a maximum number of retries is reached.
Copy link

Copilot AI Oct 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The term 'user operation transaction' should be replaced with 'transaction' according to the documentation guidelines. The phrase should read: 'Waits for a transaction to be confirmed by checking the receipt periodically until it is found or a maximum number of retries is reached.'

Copilot generated this review using guidance from repository custom instructions.
@@ -0,0 +1,115 @@
---
title: waitForUserOperationReceipt
description: Waits for a user operation transaction to be confirmed by checking the receipt periodically until it is found or a maximum number of retries is reached.
Copy link

Copilot AI Oct 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The term 'user operation transaction' in the description should be replaced with 'transaction' to align with the documentation terminology standards.

Copilot generated this review using guidance from repository custom instructions.
@github-actions
Copy link

github-actions bot commented Oct 1, 2025

🌿 Documentation Preview

Name Status Preview Updated (UTC)
Alchemy Docs ✅ Ready 🔗 Visit Preview Oct 1, 2025, 11:58 PM

@github-actions github-actions bot temporarily deployed to docs-preview October 1, 2025 23:57 Inactive
@linnall linnall changed the title feat: adds waitForUserOperationReceipt feat: adds waitForUserOperationReceipt to SDKv4 Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants