Skip to content

#120 feat: add backend REST endpoint POST /settlements/:id/execute Repo Avatar WHEELBACK/COMEBACKHERE#138

Merged
levoski1 merged 8 commits into
WHEELBACK:mainfrom
tebney:main
Jun 27, 2026
Merged

#120 feat: add backend REST endpoint POST /settlements/:id/execute Repo Avatar WHEELBACK/COMEBACKHERE#138
levoski1 merged 8 commits into
WHEELBACK:mainfrom
tebney:main

Conversation

@tebney

@tebney tebney commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Closes #120


closes#120
#120 feat: add backend REST endpoint POST /settlements/:id/execute
Repo Avatar
WHEELBACK/COMEBACKHERE
Description
Implement the POST /settlements/:id/execute endpoint that triggers execution of a settlement once the approval threshold has been met. The endpoint calls execute_settlement on the contract and handles the PartiallyExecuted state where execution succeeded for some but not all transfers.

Requirements and context
Call execute_settlement on the settlement contract via Soroban RPC
Handle the case where the approval threshold has not yet been met with a 422 response
Handle PartiallyExecuted state: return partial success response with details of which transfers succeeded and which failed
Return final settlement status and transaction hash on full success
Follow existing project conventions
Suggested execution
Fork the repo and create a branch
git checkout -b feat/backend-post-settlement-execute
Implement changes
Test and commit
Example commit message
feat: add backend REST endpoint POST /settlements/:id/execute

Guidelines
Assignment required before starting
PR description must include: Closes #[issue_id]
Keep PR description professional and detailed

@levoski1 levoski1 merged commit 3771bdb into WHEELBACK:main Jun 27, 2026
0 of 6 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.

feat: add backend REST endpoint POST /settlements/:id/execute

2 participants