GEB Docs
Search…
Configuration
Import all the necessary files:
1
>>> from web3 import Web3, HTTPProvider
2
>>> from pyflex.deployment import GfDeployment
Copied!
And then connect to an Ethereum node:
1
>>> ETH_RPC_URL = "http://13.59.107.140:8545"
2
>>> web3 = Web3(HTTPProvider(endpoint_uri=ETH_RPC_URL, request_kwargs={"timeout": 60}))
Copied!
Finally, configure a geb object. This object allows you to access most contracts in the GEB system:
1
>>> geb = GfDeployment.from_node(web3, 'rai')
Copied!
Copy link