Context
Every write endpoint in the Trustless Work API (deploy, fund, change-milestone-status, approve-milestones, release-funds, update, dispute, resolve-dispute) returns an unsignedXdr that must be signed by the user's wallet and then submitted through this shared endpoint.
Task
Build one reusable helper/hook that:
- Takes an
unsignedXdr and requests a signature from the connected Stellar wallet.
- Calls
POST /stellar/send-transaction with { signedXdr }.
- Returns
txHash, ledger, and (for deploys) contractId + escrow to the caller.
All the other escrow-action issues (03–10) should build on top of this helper instead of duplicating sign/submit logic.
Acceptance criteria
- Single shared implementation, not duplicated per action.
- Handles wallet-rejection and network-failure states with clear error surfaces to the caller.
Context
Every write endpoint in the Trustless Work API (deploy, fund, change-milestone-status, approve-milestones, release-funds, update, dispute, resolve-dispute) returns an
unsignedXdrthat must be signed by the user's wallet and then submitted through this shared endpoint.Task
Build one reusable helper/hook that:
unsignedXdrand requests a signature from the connected Stellar wallet.POST /stellar/send-transactionwith{ signedXdr }.txHash,ledger, and (for deploys)contractId+escrowto the caller.All the other escrow-action issues (03–10) should build on top of this helper instead of duplicating sign/submit logic.
Acceptance criteria