Saudi Arabia: A Beginner's Guide To Smart Contracts

Last Updated: 26 June 2018
Article by Andrew Fawcett

''Smart' contracts will have a disruptive effect on traditional contractual performance, both practically and conceptually. However, are smart contracts actually "contracts" and are they really "smart"?

What are smart contracts?

Smart contracts are computer protocols, not contracts in the strict legal sense. They execute commercial transactions or enforce legal agreements in a manner that eliminates the need for intermediaries and their associated transaction costs.

Smart contracts represent a progression of blockchain technology from a financial transaction protocol (e.g. bitcoin) to a multi-purpose mechanism to effect business activities involving purchases and exchanges of virtually any goods, services or rights.

Smart contracts can be stored on a blockchain, interact with external data feeds and then self-execute payments, shipments of products or other actions based on conditional logic (programmed as traditional "if-then" statements - if A occurs, then B happens), agreed verifiable proof of performance, or other trigger events. In computer code, this looks something like:

function payOut(address _recipient, uint _amount) returns (bool) {

if (msg.sender != owner || msg.value > 0 || (payOwnerOnly && _recipient != owner))


if ( {

PayOut(_recipient, _amount);

return true;

} else {

return false;



How is a smart contract different from making purchases on the internet or setting up an automatic payment for utility bills? Generally, when you sign up online for a website you are usually directed to terms and conditions that you click to accept. Those terms and conditions are a human-readable contract. It is the same contract as you could get in hard copy just in electronic form. Laws such as the Federal Law No.1 of 2006 on Electronic Commerce and Transactions give that contract effect even though it is in electronic form.

By contrast, with a smart contract there is nothing (in theory at least) but a digital agreement. Everything from the forming of the agreement all the way to its completion happens digitally.


What the smart contract can do

Financial Services

Trade clearing and settlement

Manage approval workflows between counterparties, calculate trade settlement amounts, and transfer funds automatically.


Electronic medical records

Provide transfer and/or access to medical health records upon multi-signature approvals between patients and providers.

Technology, media and telecom

Royalty distribution

Calculate and distribute royalty payments to artists and other associated parties according to the contract.


Peer-to-peer transacting

Match parties and transfer payments automatically for various peer-to-peer applications such as lending, insurance, energy credits, etc.

What are the potential uses of smart contracts?

Ethereum, which is a decentralized computing platform and operating system that is built specifically for creating and executing smart contracts for the "Ether" cryptocurrency using blockchain technology, is a notable smart contract application.

However, potential uses of smart contracts extend way beyond the movement of digital currency. Smart contracts could potentially be used to create peer-to-peer versions of any business model that currently involves intermediaries who handle processing and payments for a fee (e.g. banks, security exchanges, Uber or Airbnb).

By way of example, some potential uses for smart contracts across industry sectors are described in the table below:

Smart contracts and the law

"The first thing we do, let's kill all the lawyers" (William Shakespeare "Henry VI", Part II, Act IV, Scene II, Line 73)

As smart contracts are automatically enforced, smart contract enthusiasts assert that this removes the need for contract law as there is no longer any uncertainty in a smart contract transaction. From a legal perspective, smart contracts may not be that simple.

In the UAE, Article 12 of Federal Law No.1 of 2006 on Electronic Commerce and Transactions allows "smart contracts" as it provides that valid and enforceable contracts can be formed by computer programs (defined as "automated electronic agents") that include two or more electronic information systems preset and pre-programmed to carry out the transaction, even if no individual is directly involved.

The law of contract has various requirements for a contract to be valid and enforceable. For example, you cannot make an illegal contract. In the UAE a contract for gambling is illegal. You cannot have a contract to kill a person. No court will enforce such contracts.

By contrast, a smart contract is a set of instructions written in computer code that self-executes. A smart contract will do exactly what the code dictates, however ludicrous (a smart contract is not necessarily smart).

There are situations where computers cannot render contracts effectively. By way of example, written contracts frequently use wording that a party will use "reasonable endeavours". What does that mean and how do you write that in computer code?

Other fundamental legal concepts such as "good faith" and "negligence" are also very difficult to encode. These concepts are used to give the contracting parties flexibility in respect of certain obligations by not specifically determining in advance exactly what those obligations entail.

When parties agree a traditional contract, if circumstances subsequently change, there is the possibility of varying that contract. Unless the parties build into a smart contract, at the beginning, code that allows for modifications, a smart contract is not smart enough to allow for variations.

Currently, if the meaning of a contract is disputed, a court will consider what that agreement would mean to an objective and reasonable human observer. There is no such thing as a reasonable computer. Computers do not apply common sense because they are not programmed to do so.

Despite their name, smart contracts are necessarily always strictly legal contracts. At a minimum a legal contract must include the elements of offer, acceptance and the intention of the parties to enter into a legal agreement.


To the extent that legal relationships can be reduced neatly into code - so that terms are automatically enforced once the pre-programmed conditions are satisfied - smart contract technology represents an unstoppable disruptive force.

At this point in time, it seems likely that there will be a continuum between smart contracts and traditional contracts depending on the underlying transaction. A very simple contract can be fully automated (the contract is entirely in smart contract code that is stored, verified and executed on a block chain.) However more complex "smart" contracts may require a combination of both self-executing terms and contractual terms that are outside the software code. This is because:

  • the subject of the contract may not be readily distilled into a logic statement; and
  • human judgment may still be needed to determine how aspects of the contract are to be performed.

In the future, natural language computing and artificial intelligence may also overcome these barriers as well.

What is clear now is that smart contracts will revolutionise agreement making and performance of transactions.

The content of this article is intended to provide a general guide to the subject matter. Specialist advice should be sought about your specific circumstances.

To print this article, all you need is to be registered on

Click to Login as an existing user or Register so you can print this article.

Some comments from our readers…
“The articles are extremely timely and highly applicable”
“I often find critical information not available elsewhere”
“As in-house counsel, Mondaq’s service is of great value”

Related Topics
Related Articles
Up-coming Events Search
Font Size:
Mondaq on Twitter
Mondaq Free Registration
Gain access to Mondaq global archive of over 375,000 articles covering 200 countries with a personalised News Alert and automatic login on this device.
Mondaq News Alert (some suggested topics and region)
Select Topics
Registration (please scroll down to set your data preferences)

Mondaq Ltd requires you to register and provide information that personally identifies you, including your content preferences, for three primary purposes (full details of Mondaq’s use of your personal data can be found in our Privacy and Cookies Notice):

  • To allow you to personalize the Mondaq websites you are visiting to show content ("Content") relevant to your interests.
  • To enable features such as password reminder, news alerts, email a colleague, and linking from Mondaq (and its affiliate sites) to your website.
  • To produce demographic feedback for our content providers ("Contributors") who contribute Content for free for your use.

Mondaq hopes that our registered users will support us in maintaining our free to view business model by consenting to our use of your personal data as described below.

Mondaq has a "free to view" business model. Our services are paid for by Contributors in exchange for Mondaq providing them with access to information about who accesses their content. Once personal data is transferred to our Contributors they become a data controller of this personal data. They use it to measure the response that their articles are receiving, as a form of market research. They may also use it to provide Mondaq users with information about their products and services.

Details of each Contributor to which your personal data will be transferred is clearly stated within the Content that you access. For full details of how this Contributor will use your personal data, you should review the Contributor’s own Privacy Notice.

Please indicate your preference below:

Yes, I am happy to support Mondaq in maintaining its free to view business model by agreeing to allow Mondaq to share my personal data with Contributors whose Content I access
No, I do not want Mondaq to share my personal data with Contributors

Also please let us know whether you are happy to receive communications promoting products and services offered by Mondaq:

Yes, I am happy to received promotional communications from Mondaq
No, please do not send me promotional communications from Mondaq
Terms & Conditions (the Website) is owned and managed by Mondaq Ltd (Mondaq). Mondaq grants you a non-exclusive, revocable licence to access the Website and associated services, such as the Mondaq News Alerts (Services), subject to and in consideration of your compliance with the following terms and conditions of use (Terms). Your use of the Website and/or Services constitutes your agreement to the Terms. Mondaq may terminate your use of the Website and Services if you are in breach of these Terms or if Mondaq decides to terminate the licence granted hereunder for any reason whatsoever.

Use of

To Use you must be: eighteen (18) years old or over; legally capable of entering into binding contracts; and not in any way prohibited by the applicable law to enter into these Terms in the jurisdiction which you are currently located.

You may use the Website as an unregistered user, however, you are required to register as a user if you wish to read the full text of the Content or to receive the Services.

You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, link, display, or in any way exploit any of the Content, in whole or in part, except as expressly permitted in these Terms or with the prior written consent of Mondaq. You may not use electronic or other means to extract details or information from the Content. Nor shall you extract information about users or Contributors in order to offer them any services or products.

In your use of the Website and/or Services you shall: comply with all applicable laws, regulations, directives and legislations which apply to your Use of the Website and/or Services in whatever country you are physically located including without limitation any and all consumer law, export control laws and regulations; provide to us true, correct and accurate information and promptly inform us in the event that any information that you have provided to us changes or becomes inaccurate; notify Mondaq immediately of any circumstances where you have reason to believe that any Intellectual Property Rights or any other rights of any third party may have been infringed; co-operate with reasonable security or other checks or requests for information made by Mondaq from time to time; and at all times be fully liable for the breach of any of these Terms by a third party using your login details to access the Website and/or Services

however, you shall not: do anything likely to impair, interfere with or damage or cause harm or distress to any persons, or the network; do anything that will infringe any Intellectual Property Rights or other rights of Mondaq or any third party; or use the Website, Services and/or Content otherwise than in accordance with these Terms; use any trade marks or service marks of Mondaq or the Contributors, or do anything which may be seen to take unfair advantage of the reputation and goodwill of Mondaq or the Contributors, or the Website, Services and/or Content.

Mondaq reserves the right, in its sole discretion, to take any action that it deems necessary and appropriate in the event it considers that there is a breach or threatened breach of the Terms.

Mondaq’s Rights and Obligations

Unless otherwise expressly set out to the contrary, nothing in these Terms shall serve to transfer from Mondaq to you, any Intellectual Property Rights owned by and/or licensed to Mondaq and all rights, title and interest in and to such Intellectual Property Rights will remain exclusively with Mondaq and/or its licensors.

Mondaq shall use its reasonable endeavours to make the Website and Services available to you at all times, but we cannot guarantee an uninterrupted and fault free service.

Mondaq reserves the right to make changes to the services and/or the Website or part thereof, from time to time, and we may add, remove, modify and/or vary any elements of features and functionalities of the Website or the services.

Mondaq also reserves the right from time to time to monitor your Use of the Website and/or services.


The Content is general information only. It is not intended to constitute legal advice or seek to be the complete and comprehensive statement of the law, nor is it intended to address your specific requirements or provide advice on which reliance should be placed. Mondaq and/or its Contributors and other suppliers make no representations about the suitability of the information contained in the Content for any purpose. All Content provided "as is" without warranty of any kind. Mondaq and/or its Contributors and other suppliers hereby exclude and disclaim all representations, warranties or guarantees with regard to the Content, including all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement. To the maximum extent permitted by law, Mondaq expressly excludes all representations, warranties, obligations, and liabilities arising out of or in connection with all Content. In no event shall Mondaq and/or its respective suppliers be liable for any special, indirect or consequential damages or any damages whatsoever resulting from loss of use, data or profits, whether in an action of contract, negligence or other tortious action, arising out of or in connection with the use of the Content or performance of Mondaq’s Services.


Mondaq may alter or amend these Terms by amending them on the Website. By continuing to Use the Services and/or the Website after such amendment, you will be deemed to have accepted any amendment to these Terms.

These Terms shall be governed by and construed in accordance with the laws of England and Wales and you irrevocably submit to the exclusive jurisdiction of the courts of England and Wales to settle any dispute which may arise out of or in connection with these Terms. If you live outside the United Kingdom, English law shall apply only to the extent that English law shall not deprive you of any legal protection accorded in accordance with the law of the place where you are habitually resident ("Local Law"). In the event English law deprives you of any legal protection which is accorded to you under Local Law, then these terms shall be governed by Local Law and any dispute or claim arising out of or in connection with these Terms shall be subject to the non-exclusive jurisdiction of the courts where you are habitually resident.

You may print and keep a copy of these Terms, which form the entire agreement between you and Mondaq and supersede any other communications or advertising in respect of the Service and/or the Website.

No delay in exercising or non-exercise by you and/or Mondaq of any of its rights under or in connection with these Terms shall operate as a waiver or release of each of your or Mondaq’s right. Rather, any such waiver or release must be specifically granted in writing signed by the party granting it.

If any part of these Terms is held unenforceable, that part shall be enforced to the maximum extent permissible so as to give effect to the intent of the parties, and the Terms shall continue in full force and effect.

Mondaq shall not incur any liability to you on account of any loss or damage resulting from any delay or failure to perform all or any part of these Terms if such delay or failure is caused, in whole or in part, by events, occurrences, or causes beyond the control of Mondaq. Such events, occurrences or causes will include, without limitation, acts of God, strikes, lockouts, server and network failure, riots, acts of war, earthquakes, fire and explosions.

By clicking Register you state you have read and agree to our Terms and Conditions