commitCvmProvision
POST /cvms
Commits a CVM provision, finalizing the deployment. This is the second phase of the two-phase flow started by provisionCvm.
The required parameters differ based on the KMS type:
- PHALA KMS:
app_idcomes from theprovisionCvmresponse. - On-chain KMS (ETHEREUM/BASE):
app_idcomes from deploying an AppAuth contract viadeployAppAuth. You must also providekms_id,contract_address, anddeployer_address.
Returns:
CommitCvmProvision
After a successful commit, the CVM begins booting. Track progress with
watchCvmState or subscribe to cvm.created / cvm.create_failed webhook events.
Example — PHALA KMS:
safeCommitCvmProvision
Safe variant that returns aSafeResult<CommitCvmProvision> instead of throwing on errors.
