Deploying to the Testnet
Deploying your application to the testnet involves several steps
- Ensure you have a Nillion (Keplr Wallet) address
- Interact with the Testnet
- Commit your project to Github
- Host your blind app with Vercel
Create a Nillion Wallet
Follow the Creating a Nillion Wallet guide to create your Nillion wallet. Note that when you create your wallet, you need to use the "Sign up with Google" option rather than "Use recovery phrase" option because Keplr only exposes the private key of wallets created when you "Sign up with Google." This may be useful for development debugging.
Here's how to get the NILCHAIN_PRIVATE_KEY
value from a Nillion wallet created with a Google account:
Fund the Nillion Wallet address that corresponds to your private key
Follow the Nillion Faucet Guide to learn how to get Testnet NIL to fund the Nillion wallet address that corresponds to your private key. This way your app can pay for operations.
Test the configuration locally against your blind app to make sure the full blind computation flow is working as expected.
Interacting with the Testnet
In the CNA boilerplate, we have created tabs to switch between the devnet
and testnet
. Switch to the devnet
tab.
- Ensure your Nillion account is working with Keplr + funded testnet NIL.
- In your
ClientProvider.tsx
, switch the network tophoton
.
...
<NillionProvider network="photon">{children}</NillionProvider>
...
- Try to
Store Secret Integer
and wait for the Keplr Popup to occur. - This should then allow you pay and interact with the Testnet for the other modules.
Store Nada Programs on the Testnet
Need to store your Nada programs on the Testnet? Check out our Nada Program Uploader, a simple UI for uploading your program and obtaining its program ID. Just connect your wallet, upload your program, and get the program ID for your testnet deployment.
Commit your project to Github
Commit your repo to Github and tag your Github repo with nillion-cna
so the rest of the Nillion community can find it.
Host your blind app with Vercel
-
Follow the Vercel Import Guide to import your Github project to Vercel + deploy
-
Test it with the local
nillion-devnet
and with Keplr Wallet when you toggle your network tophoton
. -
Share your live link on Nillion's Github Discussions Show and Tell Forum
Keep Exploring
🥳 Congratulations on completing the Nillion Developer Quickstart and deploying your blind app to the Nillion Testnet. Keep exploring and building by
- reading about Nillion concepts and the Nada Language
- learning how to interact with and manage programs, secrets, and permissions on the Nillion Network with Nillion Client
- challenging yourself to create a page that solves the Millionaires Problem