How a transaction works· 3 of 4

From signed to final

The first answer is a guess. A validated ledger makes the result final.

4 minMedium

Key points

  • The first answer is a guess. Only a validated ledger is final.
  • tec means it failed but was recorded, so the fee is burned.
  • LastLedgerSequence sets a deadline, so a lost transaction fails for sure.

The lesson

  1. Sending a transaction is like mailing a letter. The post office says "got it." That does not mean it arrived.

  2. When you submit, the server gives a . It is the server's best guess. The real answer comes when a validated ledger includes the transaction. Then it is final.

  3. Every result has a code. The first letters tell the family:

    • tes: it worked.
    • tec: it failed, but it was recorded. The fee is burned.
    • tem: badly formed. No server will ever take it.
    • tef: it cannot apply now, such as an old number.
    • ter: not yet. It may work in a later ledger.
  4. What if the transaction goes missing? Set a deadline: LastLedgerSequence. Once a passes that number, the transaction can never get in. Then you know it failed, and you can safely try again.

Check yourself3 questions
1. Submit answers tesSUCCESS. Is the payment final?
2. Which result family burns the fee but does not do the action?
3. What does LastLedgerSequence give you?
Next lessonReading metadata