I'm new to ethereum and web3 development. I was writing a script (using web3.py) and with the following config:
nonce = w3.eth.getTransactionCount("0x8Aaca3e2a858c2d5c3ABA66a343A6F6DEA5017e9") tx = { "nonce" : nonce, "to" : recipient, "value" : self.w3.toWei(0.0001,'ether'), "gas" : 21000, "gasPrice" : self.w3.toWei(50,'gwei'), }
when I sent it, I payed almost 45 cents in transaction fees. What exactly did I do wrong, how does the ethereum/bsc network handle fees etc? I remember paying around 3-5 cents when sending from wallets.
[link] [comments]
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments