Skip to content

Conversation

@lokesh-bitgo
Copy link
Contributor

Ticket: WP-5431

@lokesh-bitgo lokesh-bitgo requested a review from Copilot October 29, 2025 04:28
@lokesh-bitgo
Copy link
Contributor Author

@claude

@lokesh-bitgo lokesh-bitgo marked this pull request as ready for review October 29, 2025 04:29
@lokesh-bitgo lokesh-bitgo requested a review from a team as a code owner October 29, 2025 04:29
Copy link

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 support for bulk fanout mode to the FanoutUnspents V2 API, which enables the creation of multiple transactions when fanning out large numbers of unspents (200 unspents per transaction).

  • Adds a new bulk parameter to the request body
  • Updates the response type to support both single transaction and array of transactions
  • Removes URL parameter validation and authentication tests that were not applicable to this typed route test suite
  • Adds comprehensive test coverage for bulk mode scenarios

Reviewed Changes

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

File Description
modules/express/src/typedRoutes/api/v2/fanoutUnspents.ts Adds bulk parameter to request body, refactors response type to support both single transaction and array responses via union type
modules/express/test/unit/typedRoutes/fanoutUnspentsV2.ts Adds helper function for single transaction validation, removes inapplicable URL/auth tests, adds bulk mode test coverage including array response validation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@kisslove-dewangan kisslove-dewangan left a comment

Choose a reason for hiding this comment

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

lgtm

@lokesh-bitgo lokesh-bitgo merged commit 7478abc into master Oct 29, 2025
21 checks passed
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.

3 participants