• VanticaTrading

What is a Smart Contract?

In a blockchain, you can put a set of transactions, but you can also store code that resembles the logic and rules of a real contract.


A Smart Contract is a computer program, stored in a blockchain, that guarantee the fulfillment of an agreement automatically and safely, without the need for third parties. Smart Contract technology is not new, but the way it is applied is.


Smart Contract
Smart Contract

Smart Contracts run exactly as programmed. They are self-executing with specific instructions or clauses written on their code which get executed when certain conditions are met. For example, when two people participate in a Smart Contract that implements a bet, they'll send the money to the contract with their selected winner choice. The Contract will be responsible for transferring the amount deposited by the two people to the address of the person who has guessed right. The action of sending money is made using the native token of the blockchain where the contract is deployed.


Any agreement between individuals or corporations may have clauses whose execution is automated with a Smart Contract deployed in a blockchain. In the case of conflicts, the traditional solution is to go to court to demand compliance with the contract or compensation for the damages caused, which implies time and costs for the parties. The risk of contract execution can be significantly reduced and very efficiently solved with Smart Contracts and Blockchain technology. It is an automated mechanism that guarantees the execution of the contract quickly, safely, and cheaply when certain agreed conditions are met.


Once a Smart Contract is programmed, tested, and deployed, the execution of the Smart Contract does not need a central authority or intermediary to be executed. Thus, many commercial exchanges are more efficient by reducing the transaction costs associated with the default of the counterparty, and the derivatives of going to court to claim compensation, in case of default. Smart Contracts avoid the burden of interpretation by being written in computer programming languages. This means that the terms in the contract are pure statements and commands in the code that forms it. For example, Cardano uses the Haskell programming language which makes it easier to test and achieve a very solid logic to enforce the contract. The Ethereum platform uses a Javascript derived language named Solidity.


The blockchain not only provides a single ledger as a source of trust, but also strips possible complications in communication and workflow because of its precision, transparency, and automated system.


A Smart Contract that runs on a blockchain needs to be immutable and must have the ability to run through multiple nodes without compromising its integrity. As a result of which, the Smart Contract functionality needs to be deterministic, terminable, and isolated. Deterministic means that the contract output will be the same if identical inputs are given. Terminable implies that the contract must have an exit when specific conditions are met or a time limit is exceeded. Isolation is needed to evade secondary effects on the platform where the contract is executed. Since any contract may knowingly and unknowingly contain bugs is important that the contract executes in an isolated sandbox.



There are lots of Smart Contract use cases. We'll review them in a later post. If you need deeper knowledge about blockchain you can enroll in any of these blockchain courses.

For a really cool graphic explanation of how Smart contracts work, you can check this infographic from Raise P2P Lending Platform. They also have a crystal clear Beginner's guide to Smart Contracts.

  • Twitter
  • Instagram
  • Facebook
  • LinkedIn
  • 1024px-Flipboard_logo_GRAY3
  • RSS

SUBSCRIBE TO THE NEWSLETTER

Thanks for submitting!