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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"handshake_id": "<handshake_id>",
"buyer_address": "<buyer_address>",
"seller_address": "<seller_address>",
"amount": "<amount>"
},
"name": "swarmtrade_lock_escrow"
}
}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) |