2

What is the equivalent platform of Ethereum Smart Contract in EOS ? And by which programming languages we can develop a smart contract? Is there a specific language like Solidity in Ethereum? And is there any demo smart contract for EOS as an example?

1 Answer 1

6

EOS is using a WebAssembly virtual machine to run smart contracts.

By theory you can use any language that will compile into WASM, but the most approved way is to use the C++ library and the eosiocpp tool (EDIT this will soon be replaced by the eosio-cpp tool).

Please have a look at the official developer portal.

I would also recommend to use the Docker workflow like it is described in the portal or in some questions here for less configuration and set up effort.

Also the GitHub repo gives multiple examples of possible contracts. To start learning I would recommend to use a tutorial (EDIT this will be deprecated because of V1.2) - which will also show you what additional libraries are available (like e.g. eosjs for frondent-dev or Demux for backend-dev).

2
  • i think eosiocpp is deprecated and wast is no longer supported (github.com/EOSIO/eos/releases/tag/v1.2.0)
    – confused00
    Aug 16, 2018 at 16:16
  • You are right! Did not yet check the release notes from 2 days ago.. Will update the answer.
    – tmm
    Aug 16, 2018 at 16:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.