Questions tagged [web3py]

Web3.py is a library for interacting with EVM based blockchains and smart contracts in Python.

For more information see Web3.py documentation.

Web3.py is maintained by Ethereum Foundation.

578 questions
-1
votes
3 answers

How solve problem with installing web3 for python in windows?

I'm trying install web3 for python3.7.5 on windows 10. But I get this error every time . I don't know what should I do, because I have already installed "Microsoft Visual C++ 14.0" and Build Tools. I tried also installing in vitrual enviroment, but…
Žanet
  • 64
  • 1
  • 1
  • 7
-1
votes
1 answer

How can I get information about droped and replaced transaction in web3?

I am using web3.py. How can I get info about droped and replaced transaction? How can I get info about pending transaction?
Mi Ka
  • 135
  • 1
  • 9
-1
votes
2 answers

PIP Install web3

I am having trouble installing web3.py on my macOS by pip The error I am getting is xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun I have…
NoobAndroid
  • 86
  • 4
  • 10
-1
votes
1 answer

npm install creating hurdle getting python env error

gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "C:\Programs\Python2.7\python2.7.exe", you can set the PYTHON env variable. gyp ERR! stack at PythonFinder.failNoPython (C:\Program…
lakshay bakshi
  • 1,577
  • 2
  • 7
  • 7
-1
votes
1 answer

DeprecationWarning: in python3

while importing the web3 library in python3.6 from web3.auto import w3 i get whole a bunch of warnings like: .local/lib/python3.6/site-packages/eth_utils/string.py:23: DeprecationWarning: The force_bytes function has been deprecated and will be…
user8421208
-1
votes
1 answer

web3 solidity variable can't set value

My Code https://gist.github.com/tlatkdgus1/4885faa14ca123024fbb3fd194404352 Result https://gist.github.com/tlatkdgus1/e87c7f247fb3d0376613d25e8286ec80 Geth https://gist.github.com/tlatkdgus1/5939f90a7b5c478f78c8ec0ecca45b5b How can I set solidity…
-2
votes
0 answers

web3.py blockchain : why the nonce should be equal to transaction count?

I am using web3.py and ganache to tranfer Ether between two account. In the tutorial that I'm learning from a part of code is like below: nonce=wb3.eth.get_transaction_count(account_1) tx={ 'nonce':nonce , 'to':account_2, …
-2
votes
0 answers

how to send noname/unpopular erc-20 coins which are not in that list??? (only metamask wallets are used)

there is a code: web3 = Web3(Web3.HTTPProvider(infura_url)) # Check connection print(web3.is_connected()) balance = web3.eth.get_balance(SENDER_ADDRESS) print(balance) adress1 = Web3.to_checksum_address(SENDER_ADDRESS) adress2 =…
-2
votes
1 answer

How to get the balance of each token and nft in the erc-20 network by ether address, and output it via print | web3.py

I need a universal code on python. I tried to get the right code myself but always the result was that I get eth balance and not all tokens. Please help me. I need the code to take 0x wallet as input, and just the sum of all tokens + nft as output
-2
votes
1 answer

require(msg.sender == owner(), 'not owner') throwing exception although msg.sender equals owner() when inspected in event

I have a marketplace contract which inherits from openzeppelins ownable.sol and i want to check access to the listNFT function to only be done by the owner of the contract. I tried the onlyOwner modifier which didn't work raising 'the caller not…
Fruot
  • 1
  • 1
-2
votes
1 answer

Can't deploy Flask application to Google App Engine with web3 library

If I include the line from web3 import Web3 and deploy my flask server to app engine it says deploy successful, but when I open the page in browser I get the error: 502 bad gateway (nginx). If I run it locally everything works fine. Why could this…
Nina
  • 499
  • 6
  • 16
-2
votes
1 answer

Login with password like Metamask

I would like to create a wallet with a login option using the password just like metamask. I know how to create a HD wallet, i just dont know how to protect it with a password. Currently Im using ethersJs and reactnative
An droid
  • 47
  • 5
-2
votes
1 answer

Issues while installing web3py

I'm encountering following error while installing web3py: Running setup.py install for cytoolz ... error ERROR: Command errored out with exit status 1: command: 'D:\Software\Environment\Python3.9.9\python.exe' -u -c 'import sys, setuptools,…
-2
votes
1 answer

Trouble Install web3.py for Windows

I would like to inquire about how to install web3.py by using Windows OS. I have a problem installing the web3.py. This is a screen shot when I install web3.py I think the error lies in the not yet installed Visual C ++ Build Tools. But when I go to…
Zoro Raka
  • 459
  • 1
  • 4
  • 19
-3
votes
1 answer

Everytime I am running Brownie run scripts/deploy.py, its showing the problem below, I need to understand what might be the problem with my install?

When I deploy this code, this is what happens? brownie run scripts/deploy.py Brownie v1.19.2 - Python development framework for Ethereum BrownieSimpleStorageProject is the active project. Launching 'ganache-cli --port 8545 --gasLimit 12000000…
Greg
  • 1
  • 1
1 2 3
38
39