Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
p-vida
/
telzho
like
0
Paused
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
telzho
/
src
/
libs
/
web3.py
LONGYKING
update
ed3fa91
over 1 year ago
raw
Copy download link
history
blame
contribute
delete
Safe
204 Bytes
import
os
from
web3
import
Web3
from
dotenv
import
load_dotenv
load_dotenv()
def
get_web3_instance
(
rpc_ulr:
str
= os.getenv(
'INFURA_OR_ALCHEMY_URL'
)
) -> Web3:
return
Web3(Web3.HTTPProvider(rpc_ulr))