5

I push a transaction to a node and receive a transaction id in return. How do I know that transaction is irreversibly confirmed?

3
  • Possible duplicate of: eosio.stackexchange.com/questions/395/… Commented May 23, 2018 at 3:47
  • Not a duplicate. There is a difference between "confirmed" (the other question) and "irreversibly confirmed" (this question). See: github.com/EOSIO/eos/wiki/Glossary at "Block".
    – kkurian
    Commented May 23, 2018 at 22:17
  • I've looked at the glossary definition you've pointed out, as well as the other question. Still, you either have a block id containing your transaction (processed), or you don't (not processed). Moreover, that block is either irreversible, or it's not far back enough (falling before the last_irreversible_block). Commented May 25, 2018 at 3:20

1 Answer 1

1

From the wiki: https://github.com/EOSIO/eos/wiki/Smart-Contract#transaction-confirmation

On completion of the transaction, a transaction receipt is generated. Receiving a transaction hash does not mean that the transaction has been confirmed, it only means that the node accepted it without error, which also means that there is a high probability other producers will accept it.

By means of confirmation, you should see the transaction in the transaction history with the block number of which it is included.

You can pull a transaction by its id, and check if it has a block_num

Where a transaction looks like

{
  "expiration": "2018-04-01T15:20:44",
  "region": 0,
  "ref_block_num": 42580,
  "ref_block_prefix": 3987474256,
  ...
}

Note: I haven't actually tried this myself

3
  • This seems to indicate that the transaction has been included in a block, which does not necessarily indicate finality AFAIK. How is finality assured?
    – kkurian
    Commented May 14, 2018 at 22:44
  • Do you mean "irreversibility"? See eosio.stackexchange.com/questions/395/… Commented May 23, 2018 at 3:48
  • Yes indeed I do.
    – kkurian
    Commented May 30, 2018 at 19:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.