Examples of how to Read and Write to Charged Particles contracts using Web3.js
Read and Write: Web3.js
To help your interact with the contracts our repository of the subgraph contains the ABI that you will need to load into Web3 to query the data.
npm i Web3 @charged-particles/protocol-subgraph dotenv
The most common ways to connect to an ethereum node are:
IPC (uses local filesystem: fastest and most secure)
Websockets (works remotely, faster than HTTP)
HTTP (more nodes support it)
For now you will need a .env.development file with one variable, containing a RPC url so Web3 can connect to the ethereum blockchain.
(grab one from AlchemyAPI it will look like https://eth-{network)/v2/sOmeThing--HeRe )