Examples

Program that used in examples

Run yarn install before running examples.

Upload program

Example of uploading program to chain

yarn program:upload

Send message

Example of sending message to uploaded program

yarn message:send <programId>

Read mailbox

Example of reading user's mailbox

yarn mailbox:read

Claim value sent from program

Example of claiming value

yarn mailbox:claimValue

Read state of the program

Example of reading state of some program

yarn state:read <programId>

Submit code

Example of code submitting

yarn code:submit