Category "web3py"

Not able to pip install web3 on my VS Code terminal due to Visual C++ error

I'm trying to install web3py via pip in Visual Studio Code but I am getting an error: Microsoft Visual C++ 14.0 is required. I tried installing build tools f

How to get exact value of a token with Web3.py on PancakeSwap? Function getAmountsOut() returns a wrong value

Good day everyone, I'll try to be as clear as possible. I was trying to get the price of s**tcoins using web3.py and, after solving many problems, I'm stuck on

How do I connect web3py to Amazon manage blockchain

Currently, I used the following python codes to connect to web3 from web3 import Web3 # Fill in your infura API key here infura_url = "https://mainnet.infura.io

Discrepancy between the getAmountsOut function and the prices on the exchange

I am making an app to get live prices of tokens from the different exchanges. To do this I'm using web3.py to access to the DEX smart contract and call the getA

Web3.py check liquidity pool balance

I'm trying to compute the balance of a lp address given the address of the token. So I have this function: web3 = Web3(Web3.HTTPProvider("https://bsc-dataseed.b

ValidationError on smart contract function call for no apparent reason(web3py)?

I am trying to call Uniswap's Router's function swapExactTokensForETHSupportingFeeOnTransferTokens(). When I enter the values manually on etherscan, it goes thr

Web3 Python Gas Gwei not working: intrinsic gas too low

Why is the gas fee not working? If I remove the gas fee, the transaction works. But if I add a gas fee, the transaction fails and returns error: {'code': -32000

How to get the price of BSC token directly the token pool contract in web3.py

I'm trying to get the price of some BSC token directly from the contract. Doing some searches, I found a mix of ideas with the snippet below. I'm sure the code

Eth, how to call a deposit function from a smart contract

I am working on a project where I need to send ether from an user to a smart contract and from the smart contract to the user. The smart contract is code in Sol

How to send max spendable eth in web3py

I am using python3 and the web3py library. I want to send the max spendable eth of an account, through the send_raw_transaction function. At the moment I can fe

problem associated with web3.py installation on windows10

I tried installing web3, but I got the error in the picture below. I installed VS build tools using the link VS Code provided but I'm still getting the same err

Getting a smart contract, web3 python

How can I access smart contract calls with only the address of the contract? Correctly, I understand that the address will be enough, because with the help of i

How can I filter pending transactions of a specific address web3.py

I'm wondering how I can get pending transaction of a specific address using web3.py I tried this but I don't know where I can put the address to get the pending

Can gas fees be paid from another account when transferring tokens using Web3?

bsc = 'https://bsc-dataseed.binance.org/' web3 = Web3(Web3.HTTPProvider(bsc)) # print(web3.isConnected()) account_1 = '0xXXXXXXXXXXXXXXX

Auto BNB Transfer Bot throws up error after the first transaction

import config from decimal import Decimal from web3 import Web3 while True: bsc = "https://bsc-dataseed.binance.org/" web3 = Web3(Web3.HTTPProvider(bsc)) balan