Posted By : Harshit
Introduction
Every transaction in the stellar network is the combination of operations that are initiated by the user. Each operation works as a single command which modifies the ledger. Some operations are creating accounts, payment, allow trust, etc. Every operation has its own threshold which is categorized into 3 categories: low, medium, and high. Allow trust and BumpSequence fall under the low threshold and AccountMerge and setOptions fall under the high threshold, the rest of the operations fall under the medium threshold.
Validity of operation
When a transaction is submitted to the network by performing some operations, the node checks the validity of the transaction to which it gets submitted for every operation before including the transaction into the transaction set. The following are the conditions to check the validity of the operation.
Operations
|
|
|
|
There are some cases of possible errors like CREATE_ACCOUNT_MALFORMED and it occurs when the destination is invalid and the other one is CREATE_ACCOUNT_LOW_RESERVE this occurs when source account has low XLMs.
|
|
|
|
|
|
Some cases of possible errors are like PAYMENT_MALFORMED which occurs when the amount is invalid, PAYMENT_SRC_NO_TRUST occurs when the source account does not have trust line the issuer, PAYMENT_NO_ISSUER occurs when the issuer of the asset does not exist.
|
|
|
|
Some cases of possible error are like CHANGE_TRUST_MALFORMED which occurs when an input of any parameter is invalid. CHANGE_TRUST_LOW_RESERVE occurs when the source account is low on XLMs. CHANGE_TRUST_NO_ISSUER occurs when the issuer of the asset cannot be found.
Result
Each of the operations has its own result type. In success result allows the user to gather the information about the effect of the operation
It requires multiple parties to sign the transaction between users and the bridge.
Operation 1 requires the signature from the user’s account and operation 2 requires the signature from the bridge account to meet the threshold for the operation of payment. The additional benefit of the sequence number for the user’s temp account allows the user to continue to perform operations.
Conclusion
In this blog, we learned about the operations that can be performed by the user on the anchor. The flow of every operation and the architecture of the operations and the type of transactions as well.
Reference
For official document - https://www.stellar.org/developers/guides/concepts/operations.html
November 21, 2024 at 11:12 am
Your comment is awaiting moderation.