# Smart Contract

**What is a Smart Contract ?**

A **smart contract** is a self-executing contract with the terms of the agreement directly written into lines of code. It operates on a blockchain platform, which is typically decentralized and distributed across a network of computers. The code and the data of the smart contract are stored on the blockchain, making the contract transparent, immutable, and tamper-resistant.

Some key features of smart contracts include:

1. Autonomy: Once deployed, a smart contract operates autonomously, meaning it executes automatically based on the input it receives and the conditions it contains.
2. Trust: The transparency and immutability of blockchain technology inspire trust, as all parties can verify the contract's code and its execution on the blockchain.
3. Security: Smart contracts are protected by the underlying blockchain's consensus mechanism, making them highly secure and resistant to hacking or unauthorized modifications.
4. Cost and Efficiency: By eliminating intermediaries, smart contracts can streamline processes and reduce costs associated with traditional contract execution.

**C++ Smartcontract and Solidity Contract on Vexanium**

There are two smart contract programming languange that run on Vexanium Blockchain ,1st is C++ ( Vexanium Native smartcontract )and Solidity ( solidity contract will activated on Vexanium version 2 in late 2023 ,  These are example of smart contract that you can try to understand the codes, deploy the smart contract, and do the push actions with it.

{% content-ref url="smart-contract/c++-smart-contract" %}
[c++-smart-contract](https://docs.vexanium.com/reference/smart-contract/c++-smart-contract)
{% endcontent-ref %}

{% content-ref url="smart-contract/solidity-evm" %}
[solidity-evm](https://docs.vexanium.com/reference/smart-contract/solidity-evm)
{% endcontent-ref %}
