pcc_schedule_publish
Publish a sealed off-chain RateSchedule. Computes scheduleHash server-side via the canonical sha256-over-canonical-JSON algorithm (matching the on-chain RateScheduleRegistry.publish() invariant). Idempotent: re-publishing the same content returns alreadyPublished:true. Returns {scheduleHash, alreadyPublished}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schedule | Yes | RateSchedule body — version, segments (constant/step/linear-decay/exponential-decay/adoption-indexed/piecewise-value), and optional notes | |
| publishedBy | Yes | Address that publishes (0x + 40 hex chars) |