Skip to main content

Crypto & Escrow Basics

Prepare a wallet‑signed deployment, monitor on‑chain, and release funds per milestone.

C
Written by Catalin Fetean
Updated over 3 weeks ago

Audience: Developers, Crypto‑enabled sellers/buyers
Outcomes: On‑chain escrow deployed and used safely

1) Prepare deployment payload

curl -X POST $API_BASE/api/escrow/deploy-contract -b cookies.txt \ -H 'Content-Type: application/json' \ -d '{"orderId":"ord_123","buyerAddress":"0x...","sellerAddress":"0x...","totalAmount":"150000","currency":"USDC"}'

2) Monitor deployment

curl -X POST $API_BASE/api/escrow/monitor-deployment -b cookies.txt \ -H 'Content-Type: application/json' \ -d '{"txHash":"0x...","orderId":"ord_123"}'

3) Release a milestone

curl -X POST $API_BASE/api/escrow/release -b cookies.txt \ -H 'Content-Type: application/json' \ -d '{"orderId":"ord_123","milestoneId":"m1","amount":75000}'

Tips

  • Capture contractAddress and txHash in your order record.

  • Factor in gas fees and network confirmations.

Did this answer your question?