Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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 ...
spraff's user avatar
  • 645
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 ...
q9f's user avatar
  • 33k
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 ...
HQST's user avatar
  • 103
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 ...
Sebi's user avatar
  • 5,284
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 ...
Sebi's user avatar
  • 5,284
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 ...
meibai's user avatar
  • 71
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/...
DiveInto's user avatar
  • 490
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 ...
zunior's user avatar
  • 1,322
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 ...
Dcompoze's user avatar
  • 387
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 ...
Sebi's user avatar
  • 5,284
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 ...
Mario M's user avatar
  • 205
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 ...
LampShade's user avatar
  • 640
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 ...
zunior's user avatar
  • 1,322
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 ...
adam's user avatar
  • 97
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 ...
qtz68426's user avatar
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 ...
SCBuergel's user avatar
  • 8,784
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 ...
Vlad's user avatar
  • 143
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 ...
lllllllllllll's user avatar
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 (...
alper's user avatar
  • 8,404
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 ...
0xshells's user avatar
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/...
pachecovich's user avatar
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 ...
Sankalp Sharma's user avatar
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/...
foufrix's user avatar
  • 185
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
3DLures's user avatar
  • 143
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 ...
Matt's user avatar
  • 31
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 ...
Roman Glushko's user avatar
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 ...
MrSea's user avatar
  • 141
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....
remedcu's user avatar
  • 372
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 ...
Questioner's user avatar
  • 2,700
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) ...
Capacytron's user avatar
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 ...
Nik's user avatar
  • 293
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 ...
Russell Kranz's user avatar
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. ...
Mirza Taha's user avatar
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 ...
Damir Olejar's user avatar
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! ...
mitmotw's user avatar
  • 31
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 ...
M Panayi's user avatar
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 ...
Mario Roma's user avatar
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 ...
michika's user avatar
  • 65
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 ...
Questioner's user avatar
  • 2,700
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 ...
Andrey Putilin's user avatar
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 ...
Adrian D.'s user avatar
  • 554
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 ...
Plus Ultra's user avatar
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 ...
gggggggggg's user avatar
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', ...
Kum's user avatar
  • 75
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 ...
Johny's user avatar
  • 21
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 ...
Firdaus Indradhirmaya's user avatar
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 ...
nick's user avatar
  • 21
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 ...
Paul Razvan Berg's user avatar
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 ...
Wanyi Yang's user avatar
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 ...
larsl's user avatar
  • 293