LogoLogo
  • ZENLAND DOCS
  • Getting started
    • What Is Smart Contract
    • What Is Network
    • What Is Explorer
    • What is Token
    • How Zenland works
  • FUNDAMENTALS
    • Zenland Contract
      • Contractee
      • Contractor
      • Contract Name
      • Contract Details
      • Agreed Amount
      • Contract Due Date
      • Buyer Protection Time
      • Zenland Fee
      • Zenland Fee Payer
    • Contract Chat
    • Contract Address
    • Custom Agent
    • Web3 Store
    • User Reputation
    • ZENF Token
    • Zenland Wallet
  • Contract Actions
    • What is Contract Action
    • Approve
    • Deploy
    • Transfer
    • Complete
    • Release
    • Dispute
    • Invite an Agent
    • Sync
    • Escrow user errors
  • contract states
    • What is Contract State
    • Draft State
    • Deployed State
    • Active State
    • Fulfilled State
    • Executed State
    • Disputed State
  • Smart contract types
    • Default Escrow Contract
    • Pre-Approved Contract
  • Extra
    • Tokenomics
    • Roadmap
    • Changelog
    • Contributors
Powered by GitBook
On this page
  • Quick Facts
  • Explanation
  • Suggested Reading

Was this helpful?

  1. Getting started

What Is Smart Contract

A brief overview of smart contracts in simple words

PreviousZENLAND DOCSNextWhat Is Network

Last updated 1 year ago

Was this helpful?

Quick Facts

  • A smart contract is simply a special program that runs on top of the blockchain(s) like Ethereum.

  • Technically, it is a program that is stored at a specific blockchain address, a.k.a. .

  • These programs are often referred to as programmable agreements, i. e. smart contracts.

  • In smart contracts, all information is written directly in code and published into a blockchain.

  • Unlike centralized currency exchanges that have direct access to your assets, Zenland provides non-custodial smart contracts. This means that no third party holds a master key to access the assets and the operations are governed by the laws of smart contracts.

  • Such contracts store agreement terms, dates, and digital money in tokens (see).

  • All contract data is safely encrypted before it is deployed (published) to the blockchain.

  • Once it is deployed, no authority or person can secretly change contract data as all operations are recorded.

  • All operations with contracts, a.i. have a timestamp and a unique transaction ID.

  • These actions may include transferring (sending into) and releasing money from the contract, etc.

  • As with all transactions, the actions are approved by nodes and have gas fees (see ).

  • Once a contract is published to the blockchain, all its transactions can be verified (see ).

Explanation

Smart contracts are specific types of programs that store information and funds (in the form of tokens) inside a blockchain.

A blockchain is a distributed database of records that keeps track of all its operations (transactions).

More on the blockchain in "".

Ethereum explains smart contracts as accounts that live on the blockchain, and cannot be deleted by default.

Because of their ability to respond to certain actions exactly as programmed, they are often compared to vending machines.

A vending machine is programmed to discharge a snack after a user selects it and pays for it. Snack selection and payment are the conditions that must be satisfied to get the results. Thus, the machine will not discharge anything until both conditions are met.

Like vending machines, smart contracts can often replace intermediaries and cut unnecessary costs.

Specific conditions in smart contracts are predefined and written into code. Such conditions may include the kind of operation as well as the time when it is performed.

For example, the amount and the date when the payment is due.

Since smart contracts are blockchain programs, they inherit blockchain qualities such as:

  • transaction transparency,

  • the anonymity of users,

  • no central authority,

  • secure encryption of data

Thus, compared to traditional paper-based contracts, smart contracts are faster, more secure, and fairer alternatives.

The contract terms are written into code and then deployed (published to the blockchain. Once published, each node of the network will have a copy of this code. This makes it impossible to change the rules defined by the contract without the nodes' approval.

A node is an independent computer that performs blockchain operations to get a reward. Besides storing data and smart contracts, nodes also process (approve) all blockchain transactions.

A gas fee is a blockchain fee that is paid to nodes approving a user transaction (miners/validators). Gas fees vary depending on the type of network and the level of difficulty of a blockchain transaction.

Contract actions may include transferring (sending into) and releasing money from the contract. This way, smart contracts act as decentralized escrow. The funds (money) are only released when specific conditions are met.

Unlike a traditional escrow which involves a person or company, a contract stores the money inside a blockchain. Put simply, no single authority has access to the contract funds (unless defined by its rules).

The tool that allows seeing the contract data is called a blockchain explorer. It is a specific search engine that finds and displays a specific piece of information from the blockchain records.

Suggested Reading

Because of this, smart contracts are often referred to as programmable agreements. These agreements can be used in peer-to-peer deals between a buyer and seller, for example. You can learn more about how smart contracts are used .

As such, all blockchain operations with contracts have timestamps and unique transaction IDs. The operations, also known as , are specific requests to nodes (contract calls) to execute a function defined in the contract code. As a blockchain operation, contract action has a gas fee.

Please refer to "" for more information.

As with regular blockchain accounts, a smart contract has its own address in the database, a.k.a a . This address is given to a specific contract when it is deployed (published) to the blockchain. It is often used to get information on all the transactions within a particular contract, its status, and/or value and gas fees.

Learn more under "r".

More on the blockchain

More on smart contract use cases

More on a blockchain explorer

More on tokens

contract address
What is Token
contract actions
What is Network
What is Explorer
What is Network
here
contract actions
What is Network
contract address
What is Explore
https://www.investopedia.com/terms/b/blockchain.asp
https://docs.zen.land/smart-contract-types/default-escrow-contract
https://docs.zen.land/getting-started/what-is-explorer
https://docs.zen.land/getting-started/what-is-token