This guide tries to assume as little knowledge as possible but there are certain assumptions:
- You should understand Python. Opshin is basically Python so we assume some basic knowledge of Python.
python3 -m pip install opshin
Make a file called
# hello_world.py def validator(_: None) -> None: print("Hello world!")
Run this command:
$ opshin build hello_world.py
This should create a
buildfolder in the current directory. The
buildfolder should look like this:
build/ └-hello_world/ ├-mainnet.addr ├-script.cbor ├-script.plutus ├-script.policy_id └-testnet.addr
We'll cover what all these files in the
hello_worldsub-folder mean later in the book.