Comment on page
Setup Your Environment
git clone https://github.com/ArrakisFinance/v2-tutorials.git
if you had previously cloned repository, sync with latest:
git pull origin main
Open a text editor or console to edit .env file adding an
- 1.Fill in
ALCHEMY_ID:ALCHEMY_ID=YOUR-API-KEY-GOES-HEREWith an Alchemy API Key for access to RPC endpoints. Don't have an Alchemy API key? see here
- 2.Fill in
0xprefixed hexidecimal private key of an ethereum address of your choice. Using a fresh address/key is recommended since we are playing with the plaintext private key, which is always a security risk for that account. Need a wallet? get metamask here How to export metamask private key? see here
- 3.Optionally, fill in
MAX_PRIORITY_FEE_OVERRIDEMAX_FEE_OVERRIDE=1000000000MAX_PRIORITY_FEE_OVERRIDE=1000000000If you face issues with gas pricing in subsequent steps, you can manually override gas prices by optionally adding
MAX_PRIORITY_FEE_OVERRIDEto the environment. These are expressed in wei units (in this example case, forcing a 1 gwei gas price).
Your .env file may now look something like this:
Congrats! Your environment is now set up, and you are ready to move on.