Create and manage on-chain escrow contracts with milestone-based fund releases.
Use this skill when the user or agent needs to:
- Hold funds in escrow between two parties
- Release payments based on milestone completion
- Create trustless payment agreements for freelance or contract work
- Automate conditional fund releases
- Create: Deposit tokens into an escrow smart contract with defined milestones
- Monitor: Check escrow status and milestone completion
- Release: Release funds when milestones are verified
- Refund: Return funds if conditions are not met
spraay escrow-create '{
"depositor": "0xYourAddress",
"beneficiary": "0xFreelancerAddress",
"token": "USDC",
"totalAmount": "500.0",
"chain": "base",
"milestones": [
{"description": "Design mockups delivered", "amount": "150.0"},
{"description": "Frontend implementation", "amount": "200.0"},
{"description": "Testing and deployment", "amount": "150.0"}
]
}'spraay escrow-status <escrow-id>spraay escrow-release <escrow-id>- Escrow creation requires sufficient token balance plus the x402 gateway fee
- Milestone releases are sequential by default
- Both parties can view escrow status on-chain
- Escrow contracts are non-custodial — funds are held by the smart contract, not by Spraay
- HTTP 402: Payment required for gateway fee
- HTTP 409: Escrow already exists or milestone already released
- HTTP 404: Escrow ID not found