This article explains the details how Tezos wallets originate (= deploy) smart contracts, without using any wallet, with a working OCaml code!
To read the code you have to be familar with OCaml.
The whole code is available at https://gitlab.com/dailambda/tezos-origination-demo.
RPC via JSON
JSON
We can access Tezos nodes via RPC and they talk in JSON over HTTP. Don’t confuse it with JSON-RPC.
Here is a small module Json
to handle JSON data.
It is based on Data_encoding.
Tezos protocol provides lots of t Data_encoding.t
to encode its data to+from
JSON and binary and we use them in this example.