New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No module named 'ethtx.semantics' #135
Comments
Hey @yuripaoloni.
|
Yeah, I tried with I didn't notice the package it wasn't supported on Windows, sorry for that. I will use an Ubuntu VM. Thank you for the fast response. |
Np! Let us know if there is anything else we can help with! |
Any update on #18? Is archivenode.io the only option to get a full node with debugging on for free? I need to get the internal execution trace of a set of transactions to run some analytics on top of them. |
Hey @yuripaoloni, Regards! |
Hey @yuripaoloni, |
Thanks @enmohsinali. I tried with the following code: from ethtx import EthTx, EthTxConfig
from ethtx.models.decoded_model import DecodedTransaction
ethtx_config = EthTxConfig(
mongo_connection_string="mongomock://localhost/ethtx", ##MongoDB connection string,
etherscan_api_key="<apikey>", ##Etherscan API key,
web3nodes={
"mainnet": {
"hook": "https://eth.getblock.io/mainnet/?api_key=<apykey>", # multiple nodes supported, separate them with comma
"poa": False # represented by bool value
}
},
default_chain="mainnet",
etherscan_urls={"mainnet": "https://api.etherscan.io/api", },
)
ethtx = EthTx.initialize(ethtx_config)
transaction: DecodedTransaction = ethtx.decoders.decode_transaction(
'0x2c2c40743117d5e6fa3ca2931fcfff40dc998c33109fc132a8ca4d640f39b996') And I'm getting back:
|
@yuripaoloni , |
I tried again and now it suddenly started to work 🤣. Maybe the node needed time to get live. Anyway, thanks @kchojn for the support 🤝 |
Np! Glad to help! If you need any help with ethtx, you can always write to us on discord 🤠 |
Windows 10. Python version 3.10.4. Latest version for ethtx is installed with
pip install ethtx
.I created a file
test.py
with the following content:Once I try to execute the file with
py test.py
, I get the following error:What's the issue? Thanks for the help.
The text was updated successfully, but these errors were encountered: