Hot answers tagged

32 votes
Accepted

What is the max size of transactions can clients like geth keep in txpool?

Summary It is limited by your computer's memory. From my basic testing in What happens when a transaction nonce is too high?, I crashed geth with 400 x 64 transactions with a data payload of 4,500 ...
user avatar
26 votes
Accepted

What is the difference between a pending transaction and a queued transaction in the geth mempool?

Look at the answer in What is the max size of transactions can clients like geth keep in txpool? What is the difference between a pending transaction and a queued transaction? Pending ...
user avatar
  • 17.6k
9 votes
Accepted

What is the name of pool which keeps transactions in memory such as Bitcoin's mempool?

It's called the Transaction Pool, or TxPool in the code. From go-ethereum - tx_pool.go, lines 35 to 62: var ( // Transaction Pool Errors ... ) const ( maxQueued = 64 // max limit of ...
user avatar
9 votes

Transaction stuck because of low gas price

Looking at your transaction, you have set a gas price of 4 gwei. Though not very high for current traffic, this should eventually get picked up. You can check gas prices and traffic on ETH Gas watch. ...
user avatar
  • 469
8 votes

In Parity, what is the equivalent RPC call to geth's txpool_content?

The closest I was able to find is parity_pendingTransactions and parity_pendingTransactionsStats. parity_pendingTransactions is very similar to geth's txpool_content, and gets the job done. Update: ...
user avatar
  • 6,141
7 votes
Accepted

How to configure max txpool memory size

Geth The default config values associated with the transaction pool can now be changed from Geth's CLI: TRANSACTION POOL OPTIONS: --txpool.pricelimit value Minimum gas price limit to enforce ...
user avatar
6 votes
Accepted

How does mining software choose transactions?

This is really an implementation detail and every miner could operate on a wide variety of mining strategies. That being said, AFAIK miner miners/pools run the standard algorithm included in Geth, ...
user avatar
5 votes

What happens to transactions in Uncles?

Answering your first question: If the transactions in a block that is declared invalid have not been already validated somewhere else in the main blockchain, they will be returned to the pool of ...
user avatar
  • 2,259
5 votes

How are transactions with the same gas price ordered in a block?

The transactions to mine are selected given a process that is absolutely specific to each client but even more to each miner. Indeed the transaction (tx) selection and sorting process is not part of ...
user avatar
5 votes
Accepted

Why is Etherscan's "Pending transactions" count so huge?

60k - 80k pending transactions sounds like a normal situation and does not seem extensive. Currently, Ethereum does ~750k transactions daily. Assuming all transactions are processed at the same rate, ...
user avatar
5 votes
Accepted

Token Price from pancakeswap

You do not need to go through this hassle, you can use getAmountsOut on the PancakeSwap router contract to make this a lot simpler. You provide a path&amount of the first token in the path to use, ...
user avatar
  • 631
4 votes
Accepted

What are those multiple transactions in the transaction pool?

These transactions are from a mining pool. You can see the frequently mined blocks in 0xea674fdde714fd979de3edf0f56aa9716b898ec8. What you saw in txpool.content.pending are just two pending ...
user avatar
4 votes

Efficiency of zkSNARKs as an Ethereum smart contract vs Zcash

Now we can compare, since a few days ago the Ropsten network just verified a Zcash transaction via a zkSNARK. Check it out here. Confirmation time: the same as for a usual Ethereum transaction. The ...
user avatar
4 votes
Accepted

How many transactions per second can we safely send?

here is how you handle this issue in a practiced and proven way. First, before planning your organization to be too large-scale, please make yourself familiar with the characteristics of the Ethereum ...
user avatar
  • 3,282
4 votes

Is there any way to see the txpool with infura and web3?

The standard Infura endpoint does not allow you to do that. I would suggest to use Chainsack, you can create a free node and allows you to do it. I have a repo showing exactly that in python using ...
user avatar
  • 366
4 votes
Accepted

Congestion tx not found in mempool

I would suggest first exploring the tx-queue related configuration options. From the Parity documentation: --tx-queue-mem-limit=[MB] Maximum amount of memory that can be used by the transaction queue....
user avatar
4 votes

How to hide transactions from mempool?

It's just a slow node... When a node receives a transaction, it sends it to other connected nodes, who then send it to other connected nodes (repeat), until all the nodes have the transaction in their ...
user avatar
  • 3,247
3 votes

How can I browse mempool in Ethereum?

New answer September 2020 A cool new tool was released: https://explorer.blocknative.com
user avatar
3 votes
Accepted

How to access to txpool within a web3 script?

With Web3 1.0.0 it's easy to implement it yourself: var Web3 = require('web3'); var web3 = new Web3('ws://127.0.0.1:8546'); web3.eth.extend({ property: 'txpool', methods: [{ name: 'content', ...
user avatar
  • 815
3 votes
Accepted

Should I use different sender addresses for multiple transactions in same block?

I'm not sure that this is necessary in practice; The advice you quote is for a situation where you're making raw transactions offline and may drop some of them, but if you just send your transactions ...
user avatar
  • 16.4k
3 votes

Do Geth and Parity nodes have the same txpool?

you have an equal chance to get your transaction mined, transaction brodcasting doesn't depend on wich client you are using. However parity is known to be faster, because geth doesn't have an ...
user avatar
3 votes

How can I browse mempool in Ethereum?

To me, etherchain is more accurate to show the pending transactions. https://www.etherchain.org/txs/pending. It is possible to get the pending transaction in JSON through the following get request: ...
user avatar
  • 131
3 votes
Accepted

How to find the number of unconfirmed transactions?

Update 23th of June 2017 Since the ICO craze started which are often badly designed we now have the actual need to see unconfirmed transactions. With Geth you can use eth.pendingTransactions from ...
user avatar
  • 1,775
3 votes

How to configure max txpool memory size

grepping around geth's code I found the following: core/tx_pool.go const ( maxQueued = 64 // max limit of queued txs per address ) type stateFn func() (*state.StateDB, error) // TxPool ...
user avatar
  • 5,154
3 votes

How are transactions with the same gas price ordered in a block?

This depends on the client, but also evolves over time. The best thing to do to get a definitive answer is look at the client code, which is easy because most clients are open source. The Geth client (...
user avatar
3 votes

Subscribe to new txpool transactions on geth node

It's a bit counterintuitive, but while web3.eth.getPendingTransactions() returns only local pending transactions (from transaction field value matching accounts within the node), web3.eth.subscribe('...
user avatar
3 votes

Subscribe to new txpool transactions on geth node

We have been running ethviewer.live since late 2017 with a modified geth client. It has certainly been painful to keep up with latest versions of geth. Also, we have had outages when we were unable to ...
user avatar
3 votes

Front running, events, off-chain and on-chain

The bots are continuously listening to both onchain changes (events, transactions, etc) and offchain changes (for example, price changes). Whenever they find that the time is right, they send a ...
user avatar
3 votes

Front running, events, off-chain and on-chain

You're thinking is heading in the right direction. A contract cannot monitor event logs so that activity needs to be off-chain. Using off-chain processes to identify opportunities has advantages - ...
user avatar
  • 51.8k

Only top scored, non community-wiki answers of a minimum length are eligible