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}.
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": {
"publishedBy": "<publishedBy>",
"schedule": "<schedule>"
},
"name": "pcc_schedule_publish"
}
}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) |