Some things to notice: TinyChain has four types of
DELETE. These correspond to HTTP methods . Every TinyChain
Opis accessible over HTTP using the corresponding request method.
TinyChain supports object-oriented programming (OOP), including class inheritance. You can see the superclasses of a TinyChain
Stringin its classpath:
Stringis a subclass of
Value, which is a subclass of
Scalar, which is a subclass of
State, which is the parent of every TinyChain class. Any TinyChain
Valuecan be constructed using by
GETting its class.
The TinyChain host at demo.tinychain.net is provided for convenience, but it may be slow due to the volume of requests it receives, and it may not always have the latest updates and bugfixes. For the best experience, you should run your own host. This is easy to do with Docker:
# the "docker build" command will output an image ID like "c0c251e99ef1"
docker build https://github.com/haydnv/tinychain.git
# paste the image ID into this command
docker run -it -p 8702:8702/tcp IMAGE_ID ./tinychain --address=0.0.0.0