Smart contracts are simple programs that live in a blockchain. As any modern application, smart contracts store data and expose methods to interact with it.
They are written in human readable languages, then compiled and deployed to the blockchain. Once deployed, any user (including other contracts) can interact
Do not worry if you don’t know how smart-contract blockchains work. As a developer, it is sufficient to understand that NEAR smart-contracts:
- Have limited computational resources.
- Interact with other contracts in an asynchronous way.
- Deal with real money, for which security must be a top concern.
Smart Contracts in the NEAR blockchain are encoded using WebAssembly. In NEAR, you can use 3 high-level languages that compile to Wasm:
While it is not necessary to be an expert in either language, during these docs we will assume you have a basic knowledge of at least one of them.
Theoretically, you can use any language that compiles to Wasm for developing NEAR smart contract. However, in order to have a user-friendly experience we would need
to provide a library that wraps around low-level runtime APIs, while also offering other high-level functionalities.
We envision that in the future, more languages will be supported and the support will be done through the effort from the wider community, not just NEAR alone.