File size: 214 Bytes
8f82127
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import os
from dotenv import load_dotenv

load_dotenv()
#simply connect to polygon rpc
POLYGON_RPC_URL = os.getenv("POLYGON_RPC_URL")
if not POLYGON_RPC_URL:
    raise ValueError("POLYGON_RPC_URL missing in .env")