eudr_create_milestone_escrow
Creates a 3-stage USDC escrow for EUDR trade, locking funds until satellite, DDS, and customs milestones pass and optionally splitting first-mile payouts.
Instructions
Creates a 3-stage conditional USDC escrow agreement with optional first-mile split payouts to smallholder cooperatives and mills (Stage 1: Satellite 30%, Stage 2: DDS 40%, Stage 3: Customs Green Lane 30%). Use to lock trade funds prior to shipment verification. Returns escrow_id, status, and milestone_schedule.
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": {
"buyer_agent_id": "<buyer_agent_id>",
"buyer_wallet": "<buyer_wallet>",
"seller_agent_id": "<seller_agent_id>",
"seller_wallet": "<seller_wallet>",
"amount_usdc": "<amount_usdc>",
"hs_code": "<hs_code>",
"commodity_description": "<commodity_description>"
},
"name": "eudr_create_milestone_escrow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Blockchain network for settlement. | Base (Low Gas $0.01) |
| hs_code | Yes | Regulated commodity HS code (e.g. '18010000', '44071100'). | |
| amount_usdc | Yes | Escrow lock amount in USDC (must be > 0). | |
| buyer_wallet | Yes | Buyer EVM or Solana wallet address for refunds. | |
| seller_wallet | Yes | Seller EVM or Solana wallet address for payout. | |
| buyer_agent_id | Yes | Calling buyer agent ID or system identifier. | |
| seller_agent_id | Yes | Target seller agent ID or supplier identifier. | |
| split_recipients | No | Optional first-mile multi-party split distribution objects with recipient wallet and percentage share. | |
| milestone_weights | No | Percentage weights for milestones 1, 2, and 3 summing to 100 (default: [30, 40, 30]). | |
| declared_net_mass_kg | No | Declared shipment net weight in kilograms. | |
| commodity_description | Yes | Commercial description of the trade shipment batch. |