# 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="/pages/kDf2pIMMoCxXnZuaRtOX" %}
[C++ Smart Contract](/reference/smart-contract/c++-smart-contract.md)
{% endcontent-ref %}

{% content-ref url="/pages/z46QK2f2tmGiD1XGXpxL" %}
[Solidity ( EVM )](/reference/smart-contract/solidity-evm.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.vexanium.com/reference/smart-contract.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
