eudr_create_milestone_escrow
Create a 3-stage EUDR milestone escrow that releases funds after satellite, DDS, and customs Green Lane checks, with optional first-mile payouts to co-ops and mills.
Instructions
Creates a 3-Stage Milestone Conditional 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%).
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. | |
| buyer_wallet | Yes | Buyer EVM / Solana wallet address for refunds. | |
| seller_wallet | Yes | Seller EVM / Solana wallet address for payout. | |
| buyer_agent_id | Yes | Calling buyer agent ID / system name. | |
| seller_agent_id | Yes | Target seller agent ID / supplier identifier. | |
| split_recipients | No | First-mile multi-party split distribution (e.g. Smallholder Co-op 75%, Mill 25%). | |
| milestone_weights | No | Weight percentages for milestones 1, 2, 3 (default: [30, 40, 30]). | |
| declared_net_mass_kg | No | Declared shipment net weight in kg. | |
| commodity_description | Yes | Description of the trade shipment batch. |