14 lines
263 B
Python
14 lines
263 B
Python
from web3 import (
|
|
IPCProvider,
|
|
Web3,
|
|
)
|
|
from web3.middleware import (
|
|
geth_poa_middleware,
|
|
)
|
|
from web3.providers.ipc import (
|
|
get_dev_ipc_path,
|
|
)
|
|
|
|
w3 = Web3(IPCProvider(get_dev_ipc_path()))
|
|
w3.middleware_onion.inject(geth_poa_middleware, layer=0)
|