How a transaction works· 1 of 4

Fields every transaction has

Four fields every transaction carries, and the signature that proves who sent it.

4 minMedium

Key points

  • Every transaction names its Account, TransactionType, Fee and Sequence.
  • The signature proves the account's key holder approved these exact fields.
  • Change one field after signing, and the signature no longer fits.

The lesson

  1. A is a signed note asking the ledger to change something. Send XRP, set up a trust line, make an offer: each is a transaction.

  2. Every one carries the same four fields, like the boxes on a form:

    • : who sends it.
    • TransactionType: what it does, such as Payment.
    • Fee: the transaction cost, in drops. The ledger burns it.
    • Sequence: the account's next number in line.
  3. Then the sender signs it with their secret key. The signature is like a wax seal. It proves the key holder approved these exact fields. Change one letter, and the seal breaks.

  4. Signing happens on your own device. Only the signed result goes to a server.

  5. Each transaction also gets a hash, a fingerprint of the signed form. Use it to look the transaction up later.

Check yourself3 questions
1. Which field says what a transaction does?
2. What happens to the Fee of a transaction that gets in?
3. You change the Amount after signing. What happens?
Next lessonSequence numbers and Tickets