All Questions
Tagged with transactions pending-transactions
148 questions
17
votes
2
answers
3k
views
Filters: what's "latest" and "pending"?
I want to monitor accounts for incoming transactions (RPC/IPC API) and call a function whenever any one of a number of monitored accounts receives ether which is "confirmed", as in, "sufficiently many ...
10
votes
2
answers
4k
views
How to resend a transaction not recognized by the network?
I've sent a simple transaction (no smart contract invocation) while my geth node had no peers attached. It created the transaction fine and returned a transaction identifier.
Even with many nodes ...
10
votes
3
answers
890
views
Commit-Reveal contract still vulnerable to front running. How can it be improved?
I'm writing a contract and I want to shield it from front-running as best as it can possible be done (obviously, fully preventing front running would be ideal). My implementation is very similar to ...
9
votes
7
answers
13k
views
Waiting for a transaction to be confirmed
Reading through the web3.js transaction documentation, what is an optimal approach of waiting for a transaction to confirm?
The method sendTransaction() returns a
String - The 32 Bytes transaction ...
9
votes
4
answers
6k
views
Optimal way of waiting for transactions to be mined in geth
I'm currently checking if a transaction has been mined using the following function (using web3.js):
function waitForTx(tx_hash) {
var result = null;
// This is not really efficient ...
7
votes
1
answer
35k
views
Transaction stuck because of low gas price
i accidentally put the lowest gas price possible when i am about to send my eth.. is there any way to cancel / re-make my transaction??
i have read some articles telling that i should out-gassed my ...
6
votes
2
answers
4k
views
weird transaction sending to self
see some weird txs calling self addresses, for example, the last 2(the first and second tx in this block) transactions, at https://etherscan.io/txs?block=6475251&p=2
https://etherscan.io/tx/...
6
votes
2
answers
6k
views
How long is it from the time a transaction is sent until it is viewable on pending transactions?
How long does it take for a pending transaction to be viewable?
When it comes to viewing pending transactions I am referring to this:
https://etherscan.io/txsPending
Also, is there a faster way to ...
6
votes
1
answer
372
views
In what cases if any, does a transaction get lost from the network forever?
Is it possible for a transaction that was included in the pending pool across multiple nodes, to become lost from the network forever (i.e. get dropped by all nodes)?
If yes, in what cases is that ...
6
votes
1
answer
109
views
User service granularity levels
Is it possible to fire up event handlers upon transaction creation/confirmation? In this tutorial two event handlers are used on_start() and on_block().
Is it possible to have a finer level of ...
6
votes
1
answer
2k
views
getBlock('pending').transactions vs txpool.status.pending?
I logged both getBlock('pending').transactions.length and txpool.status.pending while the Aragon ICO was ongoing. I'm interested in seeing transactions as they are coming to my node.
The two graphs ...
5
votes
1
answer
8k
views
Get pending transactions to a given address/contract
Is there a way I can get all pending transactions to a given address/contract? I could get the confirmed transactions by exploring transactions in recent blocks. But how would I go about getting ...
5
votes
2
answers
485
views
Is it possible to time a transaction such that it is the last in a block?
Is there some method to create a transaction and make sure that it is the last in that block? If not, how close can you get to being last?
The reason I ask is that the following page depends on that ...
4
votes
2
answers
6k
views
Monitoring Pending Transactions
How would I go about monitoring pending transactions in real-time? Would I be able to monitor only one function?
I have a full node running and have a nodejs (express server) that I want to have ...
4
votes
2
answers
744
views
is it possible to get events from transactions that are in the `txpool`?
Is it possible to see the events that will be emitted in the txpool, or is only the transaction information available?
For example, can I search in either the queued or pending transactions and ...
4
votes
1
answer
1k
views
What are those multiple transactions in the transaction pool?
I am running geth. Via txpool.content.pending I am looking at the transactions that my node currently sees. It gives me a bunch of transactions by their transaction hash (I think), in the below ...
4
votes
1
answer
112
views
Is it possible to to send out more ether than account has while compensating for it by another transaction in the same block
Is it possible to have the following scenario?
Account A has 20 ether, account B has 20 ether
In transaction 1. Account A sends 25 ether to account B
In transaction 2. Account B sends 10 ether to ...
4
votes
2
answers
474
views
The average number of pending transactions within the pending pool
Is it possible to know the average number of pending transactions for a larger period of time? For this chart (https://etherscan.io/chart/pendingtx), I can only figure the most recent 5 days. I would ...
3
votes
2
answers
2k
views
Transaction having low gasPrice makes all the other transactions hang on the pending state
I have a small private network that has a proof-of-authority engine created via geth-clique using Geth Version: 1.8.3-unstable, currently there are three signer nodes and two other non-signer nodes (...
3
votes
2
answers
949
views
How to find out when pending transactions go through? Ideally I'd be alerted
How do I know when transactions are either successfully mined or still sitting in the mempool? I don't want to just overbid on gas to get my transaction to get mined faster / more instantly from the ...
3
votes
2
answers
7k
views
Error "replacement transaction underpriced" using Nonce method of cancelling transaction
I have a pending transaction that is not going through because of low gas price. I tried sending a new transaction with the same 57 nonce (https://etherscan.io/tx/...
3
votes
2
answers
6k
views
Where can I find my pending transactions?
I wanted to know where I can find the current pending transaction for an account which isnt committed. Is it even possible? How can I get transaction hashes for transactions which are pending? Any API ...
3
votes
2
answers
2k
views
Pending Transaction on Goerli
I've started the Ethernaut challenge. I have a problem with forever pending transaction on Goerli, here is the link : https://goerli.etherscan.io/tx/...
3
votes
0
answers
1k
views
Transaction not being mined within 750 seconds
On the main net, after getting the error from the title, by making sure it's not in pending pool, how long should I wait until I can safely retry a transaction?
Thanks
3
votes
0
answers
953
views
Signed transaction vanishing from testnet (Kovan & Rinkeby)
I've been attempting to broadcast transactions to both Kovan & Rinkeby, I'm building and signing them offline and using the Etherscan API to broadcast the signed transactions. I see them in the ...
3
votes
1
answer
749
views
Pending transactions are not mined
Preconditions
I'm running a private network with Geth, having custom smart contracts deployed by Truffle and a simple frontend which using Metamask as a provider to connect the network.
Versions
...
3
votes
0
answers
106
views
Is it possible to stack transactions?
Is it possible to stack transactions which depend from themselves?
Example:
State on start: Account A (2 ETH), Account B (0 ETH), Account C (0 ETH)
Transaction 1 - Account A sends 2 ETH to Account ...
2
votes
1
answer
2k
views
How to get ethereum gasPrice from a transaction hash?
I need to get the gasUsed and gasPrice so that I can calculate the correct amount of gas required for a transaction.
I can get the gasUsed using:
var accountOneReceipt = await contractInstance....
2
votes
1
answer
2k
views
For sending a transaction to Ethereum, we need to be a "full node"?
If we only intend to send a transaction to Ethereum blockchain, do we need to be "full node" to have the entire blockchain? meaning that do we need to be "sync" with the blockchain to have the latest ...
2
votes
2
answers
565
views
Can I figure out when transaction was submitted?
can I find out when a transaction was submitted to blockchain?
Imagine transaction was sumitted at 10:00 AM. It was added to a block at 10:20. Can I find time of the transaction submission (10:00 AM) ...
2
votes
2
answers
7k
views
Trying to replace eth tx: replacement transaction underpriced
I recently sent a tx with nonce=0 and 20Gwei per gas fee. Now since the gas price never dropped so low, my tx is stuck for days.
I don't care about the stuck tx, but I want to send another tx from the ...
2
votes
1
answer
93
views
How is a contract settled when multiple wallets make the same transaction?
I'll use the DApp, CryptoKitties as an example:
Let's say some sweet digital cat is released with a "buy now" button for 1 Ethereum and 3 people make the transaction via MetaMask. All 3 transactions ...
2
votes
3
answers
9k
views
Pending transaction since the last 11 hours
I made an ethereum transfer between two accounts, with gas set to 21000. But the transaction is pending since the last 12 Hours and I cant see any balance being reflected in my recipient account. ...
2
votes
1
answer
10k
views
MyEtherWallet is pending and dropping. It looks like it is stuck in a loop for 2 days?
EDIT: Solved, it got unstuck, haven't done anything but posted this message.
What I tried to do (3 times) is sending Ethereum to Shapeshift without realizing that the low gas will take longer to ...
2
votes
3
answers
4k
views
How to simulate a transaction before sending it
Miners will include the transactions into block and those will change the state of a lot of variables including the balances of accounts.
I wanted to do it in my local node before sending transaction! ...
2
votes
1
answer
3k
views
i stupidily wrapped my ether to weth from metamask using uniswap,
I stupidly wrapped my ether to WETH from MetaMask using Uniswap. I then used https://relay.radar.tech/ to unwrap it but its taking so long. Here is the transaction hash
...
2
votes
1
answer
137
views
transactions are performed sequentially by the blockchain, but how are the waiting times managed?
I have a booking dapp where you can make reservations and call the bookRequest method. If many users call this method, it is not possible to know the order in which they will be performed and ...
2
votes
1
answer
1k
views
Is there "auto-drop" or "auto-cancel" for a transaction that's not been processed for a long time?
I sent a transaction with relatively low gas and during several days it was pending. Eventually I managed to have it to get through by increasing a gas fee.
Other time I send a transaction with a low ...
2
votes
1
answer
4k
views
How to calculate average time it takes for a transaction to be added to Ethereum blockchain?
In the following article (LINK) we read:
"despite the fact that at the time of this writing a new block is
produced approximately every 10–20 seconds the average time it
actually takes for a ...
2
votes
3
answers
202
views
Transaction execution guarantee
Several questions about guarantees of transactions:
Can valid transaction be not accepted in the beginning, so it will not make into pending pool?
Can it expire once it in the pending pool? (without ...
2
votes
1
answer
1k
views
How to get transactions from a wallet address?
Is there a way to get all the transactions from a wallet address using ethers.js or viem.sh?
Or are there any third-party libraries that have this functionality?
I'm looking for something along the ...
2
votes
1
answer
385
views
Broadcasting a transaction to be included in the next block
Since the merge we have predictable block times of around 12-13 seconds. I want to broadcast my transaction in a way that it is highly likely to get included in the next mined block, e.g. the block ...
2
votes
1
answer
551
views
Wait for incoming ethereum transactions and credit them after n confirmations
I'm trying to create a website where users can deposit ethereum. For my server I'm using node.js and express.js. I looked into web3.js but the docs are unclear to me and I don't know which functions ...
2
votes
1
answer
990
views
Making sense of a decoded transaction on Uniswap V2/3
I've subscribed to pending transactions of Uniswap V2 and V3 and am inspecting them, by decoding input of the transactions. I'm getting data as follows:
//1
data: {
method: 'swapExactETHForTokens',
...
2
votes
1
answer
583
views
Transaction on Uniswap -- how to find out what pair is being swapped (via web3.js)?
Given a transaction on Uniswap,
how to find out what pair is being swapped, and the amount of it? Namely, via web3.js/ethers.js
Is there relevant and sufficient information in the fields of a ...
2
votes
2
answers
158
views
Can a contract check an existing transaction for validation?
I am new to smart contract development so any help or guidance is appreciated.
I am thinking of creating a contract that checks if a certain transaction has already been done for validation. Is that ...
2
votes
1
answer
83
views
BUYING BUNNY WITH ETH.... Etherscan showing "dropped?" Don't know what to do
To preface, I'm crypto dumb except for buying /selling BTC. I don't mess with Alt coins much... and this issue is why!!!! HELP!!!
So I tried to acquire some BUNNY with ETH on Uniswap. I checked it ...
2
votes
1
answer
102
views
Racing condition when replacing transactions
I'm writing a bot that monitors a DeFi protocol for liquidation opportunities. The bot behaves like in the pseudo-code below:
let pending_txs: [];
for every_new_block in Ethereum {
// Check the ...
2
votes
1
answer
1k
views
Send 2 ETH from Nano to Bittrex, but run out of gas
I sent 2 ETH from my Nano wallet to Bittrex exchange. However, the transaction gets stucked due to lack of gas. I expect to see my 2 ETH goes back to my wallet minus the gas fee. However, I haven't ...
2
votes
1
answer
350
views
Issues with Parity's send transactions and deploying contracts
I am using the latest Parity client on Mac connected via WiFi (ping 25ms) on the Ropsten testnet. The chain is completely synced but my problem is that I can't post any transaction and also can't ...