Description: Implement property-based fuzz testing on the /transactions/batch-build payload parser to ensure malformed, unexpectedly large, or maliciously structured JSON arrays cannot crash the XDR builder logic.
Context / Motivation: The transaction builder endpoint processes complex nested arrays of routing intents. Edge cases in user input (like missing fields, negative amounts, or recursive objects) must be caught safely by validation logic, rather than panicking the Stellar SDK.
Acceptance Criteria: - [ ] Integrate a fuzzing library such as fast-check.
Description: Implement property-based fuzz testing on the
/transactions/batch-buildpayload parser to ensure malformed, unexpectedly large, or maliciously structured JSON arrays cannot crash the XDR builder logic.Context / Motivation: The transaction builder endpoint processes complex nested arrays of routing intents. Edge cases in user input (like missing fields, negative amounts, or recursive objects) must be caught safely by validation logic, rather than panicking the Stellar SDK.
Acceptance Criteria: - [ ] Integrate a fuzzing library such as
fast-check.400 Bad Requestfor invalid schemas and never returns a500 Internal Server Error.Technical Pointers: Focus the fuzzers on the asset amount properties. Test how the TypeScript logic handles Javascript's
MAX_SAFE_INTEGER,NaN, and extremely long string lengths for Stellar addresses.