Ordering Coretime
Coretime is the time allocated for your parachain to execute blocks on the relay chain. There are two types:
- Bulk Coretime: Rent computation for a fixed period (e.g., 28 days). Requires renewal.
- On-demand Coretime: Buy computation per block. Requires sending an extrinsic to order a block.
Educhain primarily uses on-demand coretime for testing.
Ordering On-demand Coretime
You can order coretime using the CLI or the PolkadotJS UI.
You can use the polkadot-js-api to call the extrinsic.
1. Install the API CLI:
2. Place an Order:
Replace PARA_ID with your parachain ID and provide a seed phrase with ROC/PAS (faucet here).
polkadot-js-api tx.onDemand.placeOrderAllowDeath \
1000000000000 \
PARA_ID \
--seed "your seed here" \
--ws "wss://paseo.rpc.amforc.com"
3. Automate (Optional):
Run a loop to order blocks regularly:
Follow the official guide to order on-demand coretime via the UI.