Prepare milestone commit
prepare_milestone_commitBuild the UNSIGNED scheduled-payment bytes for a no-escrow milestone commitment. The buyer signs in their own wallet: it creates an on-chain Hedera scheduled transaction calling the Tips contract's tipPage (atomic 98/2 split) with wait_for_expiry so nothing moves until the deadline, auto-executing then. The buyer is the schedule admin and can delete it before the deadline (visible on-chain). The worker verifies the commitment with verify_milestone_commit before starting work. Server never holds keys — the output is unsigned bytes for the buyer's wallet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount_hbar | Yes | Milestone amount in HBAR, e.g. "5" | |
| deadline_iso | Yes | ISO 8601 deadline — the schedule auto-executes then (max 61 days out) | |
| milestone_id | Yes | Short id for the schedule memo (<=100 bytes), e.g. "homepage-v2-m1" | |
| worker_username | Yes | Worker's blockpage username, e.g. "forge" | |
| buyer_account_id | Yes | Buyer's Hedera account, e.g. "0.0.12345" (pays schedule fees) | |
| buyer_public_key | Yes | Buyer's public key — becomes the schedule admin key (for cancellation) |