Skip to main content

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_id comes from the provisionCvm response.
  • On-chain KMS (ETHEREUM/BASE): app_id comes from deploying an AppAuth contract via deployAppAuth. You must also provide kms_id, contract_address, and deployer_address.
Parameters: 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:
Example — On-chain KMS:

safeCommitCvmProvision

Safe variant that returns a SafeResult<CommitCvmProvision> instead of throwing on errors.