Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 30 23:14
    pipermerriam commented #1797
  • Nov 30 18:09
    kclowes commented #1801
  • Nov 30 16:39
    kclowes commented #1797
  • Nov 30 16:33
    pipermerriam commented #1797
  • Nov 30 12:03
    dmitry-tk commented #1794
  • Nov 30 10:17
    znss1989 commented #1793
  • Nov 29 16:21
    zinootje opened #1802
  • Nov 27 11:39
    Pet3ris commented #1801
  • Nov 27 11:31
    Pet3ris commented #1801
  • Nov 27 08:46
    avatar-lavventura commented #1031
  • Nov 26 20:55
    tmckenzie51 commented #1794
  • Nov 26 12:44
    Pet3ris edited #1801
  • Nov 26 12:44
    Pet3ris opened #1801
  • Nov 24 20:16
    esraa95mahmoud opened #1800
  • Nov 24 12:34
    dmitry-tk commented #1794
  • Nov 24 10:36
    cygnusv opened #1799
  • Nov 23 22:32
    kclowes synchronize #1797
  • Nov 23 22:02

    kclowes on master

    Remove unneeded pytestmark warn… Add newsfragment for pytest war… (compare)

  • Nov 23 22:02
    kclowes closed #1796
  • Nov 23 19:56
    kclowes commented #1798
Will Price
@willprice221
My assumption is that web3.py is enforcing this, not the node, but maybe that is wrong idk
Eth-Gitter-Bridge
@Eth-Gitter-Bridge
<Marc Garreau (wolovim)> @willprice221 first, are you sure you want to send a tx fee of more than 1 eth? second, what client are you connected to?
Will Price
@willprice221
@marcgarreau much appreciated :)
Eth-Gitter-Bridge
@Eth-Gitter-Bridge
<Marc Garreau (wolovim)> 👍
Eth-Gitter-Bridge
@Eth-Gitter-Bridge
<Piper Merriam> @MikeR808 can you give some additional context on what you are generating keys for? Personal use? Use by a script or bot? Single key or many keys?
Eric
@efalken
I have created a web3.py dapp off of a template that worked fine--reading and sending transactions. My new dapp reads data correctly, but it does not send transactions (cacheCall() methods work, cacheSend() do not). I am using Rinkeby, though the old one was built for the mainnet. Is there anything obvious, or a link someone can suggest?
Bortxoloko
@Bortxoloko
hey guys is what security checks i must check before swaping with smartcontracts? im reading a lot of attacks can be done
Just some guy
@fubuloubu
has anyone looked at https://github.com/mikeshultz/ledger-eth-lib for Ledger Nano integration?
Mikko Ohtamaa
@miohtama
I tried to do Ledger and Python integration long time ago
But Ledger is such undocumented and flaky crap that only thing you can get is a headache
IK
@thor-ragnarok
any interface for working with mnemonics in web3.py?
Eth-Gitter-Bridge
@Eth-Gitter-Bridge
<Marc Garreau (wolovim)> (which is also exposed in web3.py under the w3.eth.account namespace)
DeafDrow
@sigurdpl
anyone else having problems getting event logs using python with infura ?
i only get []
Just some guy
@fubuloubu
@wolovim eth-account actually supports Ledger on a feature branch that works now :laughing:
it truly is a mess, I count no less than 5 different implementations of the same feature between various people and branches in official EF repos
kclowes
@kclowes
@sigurdpl with middleware or without? And what do your params look like that you're sending in?
DeafDrow
@sigurdpl

with open('factory.json', 'r') as abi_definition:
ABI = json.load(abi_definition)

checkSumAddress = Web3.toChecksumAddress(contractAddress)

fContract = w3.eth.contract(address=checkSumAddress, abi=ABI)

get events

fromBlock = 11277894
toBlock = 11278116

my_filter = w3.eth.filter({'fromBlock': fromBlock, 'toBlock': 'latest', 'address': checkSumAddress})
print(my_filter.get_new_entries())

@kclowes what you mean with middleware ?
kclowes
@kclowes
That answers my question. There is a middleware called local_filter_middleware you can add to keep track of your own filter id, rather than having the node do it for you. It doesn't look like you're using it though. It may be that your block size is too big. IIRC more than ~50 blocks and Infura has a hard time
DeafDrow
@sigurdpl
thanks man
Marc Garreau
@marcgarreau
@fubuloubu yeah idk all the history on this topic, but i see at least a couple separate efforts. everyones generally got a full plate, though, so this might be good bounty territory or will have to wait til its top prio for one of us. i saw the ledger lib has a big WIP/alpha warning and last commit was 10 mos ago — you’ve been using it without issue?
Adrian Petrescu
@apetresc

Hey all - I'm trying to read in the Eth2 deposit contract via web3.py and having trouble having it recognize the ABI. I parsed out the exact JSON returned by https://etherscan.io/address/0x00000000219ab540356cbb839cbe05303d7705fa but it seems to be malformed:

web3.exceptions.ABIFunctionNotFound: ("The function 'name' was not found in this contract's abi. ", 'Are you sure you provided the correct contract abi?')

I obviously assume I'm doing something wrong, anyone have any pointers? Shouldn't the ABI listed here be good?

kclowes
@kclowes
@apetresc it looks like you're trying to use a function named name, but the contract doesn't have a function named name
Adrian Petrescu
@apetresc
@kclowes I'm not trying to use anything on the ABI myself, I'm just calling w3.eth.contract("0x00000000219ab540356cBB839Cbe05303d7705Fa", abi=abi) (with abi parsed straight from etherscan's posted ABI), and web3.py's constructor is throwing that exception above
Adrian Petrescu
@apetresc
Literally just the script:
abi = json.loads(requests.get("https://api.etherscan.io/api?module=contract&action=getabi&address=0x00000000219ab540356cbb839cbe05303d7705fa").json()['result'])
contract = w3.eth.contract("0x00000000219ab540356cBB839Cbe05303d7705Fa", abi=abi)
Mikko Ohtamaa
@miohtama
@apetresc Can you share a full traceback?
I do not think web3 contract constructor has anything that makes it look for a function name that does not exist for this contract
Adrian Petrescu
@apetresc
Whoooooops - I found the problem 😳😳😳
You are right @miohtama , it was actually a callback in my code that was trying to call .name() instead of .functions.name().call()
apetresc @apetresc is embarrassed
Mikko Ohtamaa
@miohtama
Adrian, you just need few more pairs of eyes
we are not yet in the future where you can order those in your local cyberclinic
Just some guy
@fubuloubu

you’ve been using it without issue?

yup

it has an issue with large transactions though. I think the txn needs to be paged over usb
p.s. @marcgarreau it looks like v5.13.0 inserted a pretty serious encoding bug into web3py
I'm downgrading to v5.12.3 with no issues
Marc Garreau
@marcgarreau
yeah, on quick skim, i see what looks like an eth-tester issue(s). glad that you’re not blocked. if indeed just eth-tester, we’ll probably pick it next week after the turkey wears off
Just some guy
@fubuloubu
:+1: keep me in the loop (maybe @ me in any PRs to fix)
MohamedDenta
@MohamedDenta
python web3 : How to listen for smart contract events
Peteris Erins
@Pet3ris
Is there a way to change which addresses become account[0-9] using the eth-tester provider in web3.py?
Peteris Erins
@Pet3ris
I've flagged a possible bug, seems like I'm not able to use getTransactionCount with a block identifier: ethereum/web3.py#1801
Stellarize
@Stellarize
hi. trying to generate randomly address for each transaction call of my app . is it possible to do it with web3.py
Mikko Ohtamaa
@miohtama
it is possible with any programming language
Eth-Gitter-Bridge
@Eth-Gitter-Bridge
<Piper Merriam> @stellarize I would look into hdwallets. That would give to a way to do deterministic random generation of addresses, but you'll still have to deal with the complexity of funding each address...
<Piper Merriam> There are python implementations of the hdwallet spec that you should be able to find reasonably easily
kclowes
@kclowes
@fubuloubu can you help me understand what you're trying to test? It looks like maybe eth-tester used to return a value for estimateGas on a function that was going to Revert, but now it throws the TransactionFailed error?