3. Program Generation and Deployment

After configuration, Nyvo generates the Solana program code for your dApp and handles its deployment. The platform’s cloud service will compile the program (e.g. using Rust and Anchor, behind the scenes) and prepare the deployment transaction.

You will then be prompted to connect your wallet (e.g. Phantom) and approve the deployment. Nyvo uses your wallet as the fee payer and optionally as the program’s upgrade authority. When you approve, the program bytecode is uploaded on-chain as a BPF program. This transaction may consist of multiple instructions (such as allocating the program account, writing the program data, and finalizing it), but Nyvo batches these into one workflow so you only sign once.

The Solana runtime charges a small fee based on transaction size and signatures (5000 lamports per signature). Nyvo will ensure the new program is funded with enough lamports to cover rent-exempt storage (Solana requires 2 years of rent paid upfront for account storage). This means if the program’s account is, say, N bytes, Nyvo will deposit roughly (N + 128) * 6,960 lamports to make it rent-exempt (128 bytes is account overhead). Deployment is complete when you receive a program ID – a 32-byte address representing your on-chain dApp logic.

Last updated