First of all, if GETH is not installed on your computer, we download it from the official Ethereum node site, the link to which is written below.
geth ethereum org
(go-ethereum)
We extract the package we downloaded from the archive. We run it in run mode.
We open the terminal and enter the code below to switch to the virtual machine.
Code: Select all
$. venv/bin/activate
Code: Select all
$ python3
Code: Select all
from web3 import Web3
Thus, directory as a hidden (invisible) a geth.ipc file is created under the '/home/computernamecn/.ethereum' directory under the '/home/computernamecn/' file.
We enter the following command to establish our connection.
Code: Select all
>>> b3 = Web3.IPCProvider('~/.ethereum/geth.ipc')
Code: Select all
>>> b3.is_connected()
True