A smart contract is a computer protocol that verifies, facilitates, or enforces contract execution or negotiation. Smart Contracts enable for the completion of transactions without the involvement of a third party.
Smart Contracts allow for the conflict-free and transparent exchange of money, shares, property, or anything of value without the involvement of an intermediary. To describe smart contracts, we’ll use the example of a vending machine. Most of the time, you see a notary or a lawyer, pay them, and then wait for the paperwork to arrive.
Smart contracts, on the other hand, require only the placement of a crypto token, such as bitcoin, in a vending machine to activate your escrow, social identity, or other services. Regardless of what is put in the account
Smart contracts also impose fines and limits in the same way that traditional contracts do, but they do so automatically. This tutorial will show you how to create smart contracts on the Stellar Blockchain, one of the greatest blockchain systems for decentralised financial transactions.
How do Stellar Smart Contracts function, and what are they?
Smart contracts are referred to as Stellar Smart Contracts on the Stellar Network. A Stellar Smart Contract (SSC) is a collection of completed and connected transactions that are linked by a set of rules. The following are some examples of limits that can be employed when designing SSCs:
- Multisignature:
what keys are required to authorise a specific operation? What parties must agree on a condition before action can be taken? The concept of requiring many parties’ signatures to sign transactions originating from a single account is known as multisignature.
- Atomicity/Batching:
What operations must all be completed at the same time or the system will fail? What must occur in order for anything to succeed or fail? The concept of batching is to combine multiple actions into a single transaction. When a series of operations is sent to the network, atomicity ensures that if one of them fails, the entire transaction will fail.
- The sequence:
Is the order in which a transaction series should be conducted. What are the limitations and repercussions? The concept of a series is represented on the Stellar Network by a sequence number.Using sequence numbers to ensure that specific transactions do not run if another transaction is filed is a solid idea when it comes to transaction manipulation.
- Limitations on Transactions:
When may a transaction be completed? The length of time a transaction can be valid is defined as a time restriction. In an SSC, time periods can be represented using time boundaries.
Read More : https://www.leewayhertz.com/create-stellar-smart-contracts/