Solution for brownie transact stuck with "Awaiting transaction in the mempool..."? - brownie

for like every 1 out of 10 transact, it got stuck with a Awaiting transaction in the mempool... in terminal.
it just stuck there forever, even if the transaction itself is already confirmed( on blockchain explorer).
I wonder if this is a brownie thing or a web3.py thing?
my evn(Brownie v1.16.4, Web3 5.23.1)

Related

Not able to correctly send a transaction - BSC Testnet & Web3

After countless trials, I'm not able to send a transaction using the BSC tesntet, Web3 js and Metamask (I also tried with the Binance wallet).
It seems that everything works, but when I deploy the transaction I get errors like "nonce too low", "transaction underprices" and it doesn't matter if I manually change the nonce, gasLimit and price, and the amount to spend.
Any idea? Do you know if there is any working example or did you experience similar issue?
Any help/comment/suggestion is appreciated! Thank you in advance!
Used Binance testnet and web3 to code, sign and send a trasnaction --> I got several errors like "transaction underpriced", "nonce too low"

What happens when my transaction gets confirmed and added to the new block?

What happens when my transaction gets confirmed and added to the new block?
I learned that if it doesn't get confirmed it will be stuck in the mempool. And I know that the miner who added the new block will be rewarded with currencies and the tx fees that is included to the block. But I was wondering if there is no reward to the transaction owner?
Can anyone give me an answer?
Transaction owner buys the service. Block producers (miners) sell the service.
Transaction owner cannot be paid for the service that they are buying, because it does not make any sense.

How to reset escalations on responses in OTRS?

Having OTRS queues to run escalations are fine. The thing is, that the tickets stay escalated if the solution time is exceeded.
The thing is sometimes it is a client responsibility to deliver something to close the ticket.
In this case the client gets a response.
How can I reset the escalation time to the time the ticket is replied and the pending is set to a specific date?
So the escalation time will occur e.g. 1 day after the pending date.
Just check https://www.znuny.com/add-ons/znuny4otrs-repository and follow the instructions. After this the package is available the package manager
try the free add-on Znuny4OTRS-EscalationSuspend. Then you can configure states where escalations are suspended. E.g. a state like 'pending customer feedback'

How to create ethereum withdrawal system on a site?

I want to create an ethereum withdrawal system on my site. I know how to send transactions with web3and do other things but I have one problem. If you are trying to send transaction while you already have a processing transaction you will get {'code': -32000, 'message': 'known transaction: (txn hash)'} error. That means that I can't just process transactions without stopping. So how can I do it? Should I make a queue or something like that? I heard I can do it with promises but I don't know how.

Ethereum Pending Transaction

I am trying to send a transaction.
eth.sendTransaction({from: eth.accounts[0], to: eth.accounts[1], value: web3.toWei(5, "ether")})
eth.sendTransaction({from: eth.accounts[0], to: eth.accounts[1], value: web3.toWei(5, "ether")})
INFO [08-25|21:14:21] Submitted transaction
fullhash=0xe1b58ddcb6d8c3f3a8308e0eb275f10c0c3b7bd8807cd24ff6a315a3917ab2a5
recipient=0x939f34bc9253a62927871c889bcf62f398d264a6 INFO
[08-25|21:14:29] Submitted transaction
fullhash=0x33ca6bb00a70de13bd8b1fdec5d0a7995ad09a90e416ac8ab686fc650a324331
recipient=0x939f34bc9253a62927871c889bcf62f398d264a6 INFO
[08-25|21:14:57] Updated mining threads threads=1
INFO [08-25|21:14:57] Transaction pool price threshold updated
price=18000000000 INFO [08-25|21:14:57] Starting mining operation
INFO [08-25|21:14:57] Commit new mining work
number=1 txs=2 uncles=0 elapsed=73.574ms
But when i run
eth.pendingTransactions
i am able to see the list of above sent transactions
SO my question is
When will the transactions be mined?
P.S.- i am running it on my local machine(private blockchain)
Thanks in advance :)
If you are using private blockchain then you can run miner.start() function using the console. After that it will take 5-6 min and miner will be ready to pick your transaction and automatically coinbase account balance will be increased.
Some time if you send very less gas and gasprice with your transaction with your transaction then may be transaction gets stuck. So please send enough gas with your transaction. It will get executed.
You can also send gas and gasprice in your command as below--
eth.sendTransaction({from: eth.coinbase, to: "0x154230ed91d1e711e56b9c0f88b5ba5fd2bghjgf", value: web3.toWei(5, "ether"),gas:21000,gasPrice:web3.toWei(45,"wei")})
Hope this will help