{"id":314,"date":"2023-11-22T09:22:32","date_gmt":"2023-11-22T09:22:32","guid":{"rendered":"http:\/\/10.0.1.147\/?page_id=31"},"modified":"2024-07-03T06:52:55","modified_gmt":"2024-07-03T06:52:55","slug":"developers-transaction-basics","status":"publish","type":"page","link":"https:\/\/www.hashcashconsultants.com\/developers-transaction-basics\/","title":{"rendered":"Developers Transaction Basics"},"content":{"rendered":"
Transactions are commands that modify the ledger state. Among other things, Transactions are used to send payments, enter orders into the decentralized exchange <\/a> , change settings on accounts, and authorize another account to hold your currency. If you think of the ledger as a database, then transactions are SQL commands.<\/p>\n Each transaction has the following attributes:<\/p>\n This is the account that originates the transaction. The transaction must be signed by this account, and the transaction fee must be paid by this account. The sequence number of this transaction is based off this account.<\/p>\n Each transaction sets a fee <\/a> that is paid by the source account. If this fee is below the network minimum the transaction will fail. The more operations in the transaction, the greater the required fee.<\/p>\n Each transaction has a sequence number. Transactions follow a strict ordering rule when it comes to processing of transactions per account. For the transaction to be valid, the sequence number must be 1 greater than the sequence number stored in the source account <\/a> entry when the transaction is applied. As the transaction is applied, the source account\u2019s stored sequence number is incremented by 1 before applying operations. If the sequence number on the account is 4, then the incoming transaction should have a sequence number of 5. After the transaction is applied, the sequence number on the account is bumped to 5.<\/p>\n Note that if several transactions with the same source account make it into the same transaction set, they are ordered and applied according to sequence number. For example, if 3 transactions are submitted and the account is at sequence number 5, the transactions must have sequence numbers 6, 7, and 8.<\/p>\n<\/div>\nSource account<\/strong><\/h5>\n
Fee<\/strong><\/h5>\n
Sequence number<\/strong><\/h5>\n