Make sure you have the following minimum hardware requirements.
- A Linux-based OS (e.g., Ubuntu Server 22.04 LTS).
- At least 8GB RAM with a 2-core CPU.
- An AMD64 architecture system.
Make sure you have the following minimum software requirements.
You can run your own Sepolia node if you wish and we recommend this for a production set up. However, for simplicity and brevity, we demonstrate by using a node provider.
You will need the following:
- A Sepolia node RPC URL: e.g. https://sepolia.infura.io/v3/YOUR-INFURA-API-KEY.
- An account holding a minimum of 2 Sepolia ETH that you must send to a generated address to make for contract calls.
Use a public faucet to get Sepolia test ETH.
We will be working with two separate
.envfile resides in the contracts project directory. We will set this up in the contract set up section.
.envresides in a shared system directory so that it is accessible to the node and all running processes.
Create a folder
/tmp/cdk/ to store the shared
.env file which will be used by all running processes.
- Any files in the
tmp/directory are deleted on shutdown.
- For this reason, we recommend that you save this folder in your home directory once the shared configuration set up is complete.
Shared environment variables¶
.env file to store the environment variables that all running processes will share. This shared
.env file allows us to use
tomlq to easily setup the configuration for the node and running processes.
After adding a few variables to this file in the next set up section, this file is populated with more environment variables during the node set up step and is then accessed by the system throughout the deploy node configuration step and node and services run step.
Don’t forget: The system removes this file on shutdown.