Deploy (register or update) an app and pay for it
flux_deploy_appValidates the specification on a node, quotes it, and with confirm=true signs it with the Flux ID, broadcasts it and pays the quoted FLUX from the payment address. Without confirm it only returns the plan (price, balance, warnings) and spends nothing. Registers a new name or updates an existing app of the same owner. Then call flux_wait_for_app with the returned txid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | ||
| confirm | No | Set true to actually sign, broadcast and pay. | |
| enterprise | No | Make the app private: these components and contacts are encrypted so only the nodes running the app can read them. When set, spec.compose should be [] and spec.enterprise "". | |
| fluxIdPrivateKey | No | WIF private key of the Flux ID that owns the app. Use a dedicated key from flux_generate_keys, never a main wallet key. | |
| paymentPrivateKey | No | WIF private key of the Flux address that pays. Fund it with only what you intend to spend. |