Linked Questions

16
votes
3answers
10k views

What's the proper way to wait for a transaction to be mined and get the results? [duplicate]

I'm using react to write the frontend for my dApp, and doing this to (attempt to) update react's state via an asynchronous sendTransaction call: var thisJS = this web3.eth.sendTransaction({from: ...
57
votes
6answers
76k views

What number of confirmations is considered secure in Ethereum?

In Bitcoin, 6 confirmations are considered secure (very low probability of transaction/block reversal). What is the current number in Ethereum?
33
votes
1answer
26k views

Transaction Status

A very elementary question, how do I get a transaction status after firing the transaction? I mean suppose I do a sendTransaction where I transfer some amount of ether from 1 account to other, how can ...
14
votes
2answers
1k views

Is a fully private blockchain network immutable?

I always hear that immutability is one of the great assets of using blockchains in banks. An auditor can come and look at the list of transactions and it will trust them because blockchains are ...
14
votes
2answers
1k 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 ...
7
votes
4answers
2k 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 ...
4
votes
2answers
2k views

How do I get the confirmations of a transaction programmaticallly?

Can I get the confirmations of a transaction using Solidity? If not, is there any other method I can use to get confirmations programmatically? I hope when user submits one transaction, the web can ...
8
votes
1answer
995 views

Can a transaction get lost?

Given that I am connected to the network with at least one peer, can I be sure that a transaction I sent will be executed (either with fail or success)? Is there a possibility that it will never make ...
4
votes
1answer
870 views

Transaction receipts, blocks and confirmations

In Bitcoin, there is a best practice to wait between three to six block confirmations before accepting an transaction. This is to avoid double spending. Are there similar rules of thumb in Ethereum? ...
1
vote
3answers
2k views

Get the status of transaction

Looking for a way to understand success (or failure) for ethereum transaction. When we execute a contract method (send transaction) we receive it hash. Transaction is added to the block, block is ...
2
votes
1answer
1k views

How does (current block number - block number of a given transaction) gives the confirmation count?

I found a discussion here How do I get the number of confirmations on a transaction in geth or any other tool? that give the solution as: web3.eth.blockNumber-web3.eth.getTransaction(<txhash>)....
4
votes
1answer
1k views

Are events in a contract triggered after that particular transaction is mined?

Let's say I have an event notify() in a function called buy(). event notify(); buy(){ //... notify(); } Problem here is that my the notify watch handle is triggered only after that ...
3
votes
1answer
629 views

Same transaction in two consecutive blocks?

At some point in time, my local Geth node reported this tx http://testnet.etherscan.io/tx/0xa5b96f92520f18113061a3d7982709e1656988a74ce76760792f90e7ec92fb18 with the call eth.getBlock(1256437) in the ...
4
votes
3answers
142 views

Deployed contract not callable anymore

I deployed a contract yesterday which was mined and which was responding to calls. Today the contract "does not live" anymore. Do I need to redeploy? Is there a way to find addresses of contracts I ...
1
vote
2answers
465 views

How to check if an event is confirmed?

When an event is triggered, you get something like this: { "address": "0x0a7a177321f3b3b6e2299e621eb32e892b141b4b", "topics": [ "0x0d332ed5c7d6f1999116748c0eb99c740f276d879d025a5be6435fcf177785de"...

15 30 50 per page