Skip to content

feat: Add POST /api/v1/escrows endpoint for transaction preparation#38

Open
crtahlin wants to merge 1 commit intomoltfrom
fix/issue-20-post-escrows-endpoint
Open

feat: Add POST /api/v1/escrows endpoint for transaction preparation#38
crtahlin wants to merge 1 commit intomoltfrom
fix/issue-20-post-escrows-endpoint

Conversation

@crtahlin
Copy link
Contributor

@crtahlin crtahlin commented Feb 3, 2026

Summary

  • Implements POST /api/v1/escrows endpoint that returns encoded transaction data
  • action=fund: Returns calldata to fund an existing escrow
  • action=create: Returns calldata to create a new escrow
  • Follows common DeFi pattern: API prepares tx data, user submits via wallet

Test plan

  • Manual testing with curl
  • Integration with frontend wallet

Closes #20

Implements issue #20 - adds POST endpoint that returns encoded transaction
data for creating or funding escrows on-chain.

- action=fund: Returns calldata to fund an existing escrow
- action=create: Returns calldata to create a new escrow

The endpoint follows the common DeFi pattern where the API prepares
transaction data and the user submits via their wallet.

Closes #20
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.

POST /api/v1/escrows endpoint doesn't exist - documented purchase method broken

2 participants