swarmtrade_lock_escrow
Lock funds in escrow for a trade to secure payment until delivery confirmation or dispute resolution. Specify buyer, seller, amount, and optional chain ID for on-chain escrow.
Instructions
Lock funds in escrow for a trade. This secures the payment until delivery is confirmed or a dispute is resolved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handshake_id | Yes | The trade/handshake ID this escrow is for | |
| buyer_address | Yes | Buyer wallet or payment address | |
| seller_address | Yes | Seller wallet or payment address | |
| amount | Yes | Amount to lock in escrow (as string for precision) | |
| chain_id | No | Numeric chain ID for on-chain escrow (1=Ethereum, 8453=Base, 137=Polygon, 11155111=Sepolia). Omit for off-chain escrow. | |
| token | No | Token contract address for ERC-20 escrow (omit for native token) |