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
andtxHash
in your order record.Factor in gas fees and network confirmations.