Skip to main content

deployAppAuth

Deploys an AppAuth smart contract on Ethereum or Base. This is required for on-chain KMS deployments — the contract acts as the access-control layer and generates the app_id used in commitCvmProvision. This function interacts directly with the blockchain (not the Phala Cloud API). Parameters: Callbacks: Returns: DeployAppAuth Example:
This function requires ETH on the target chain to pay for gas. The default minimum balance check is 0.001 ETH.

safeDeployAppAuth

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