Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 977 Bytes

wtf.md

File metadata and controls

22 lines (16 loc) · 977 Bytes

About

The EXM contract below is an example implementation of a contract that uses Zilliqa for contract's caller authentication (action.caller), empowered by zil-auth atom of zil molecule.

Contract

Prerequisites

  • EXM SDK
npm i -g @execution-machine/sdk

Iteracting with the contract

To register a name in the contract example, you have first to sign with your wallet the message used for verification in the contract's example which is hello world

exm function:write 0vvqqDUHuVFtYijYNTLAkeQh6ZBoRZD29uOClU5_um8 --input '{"function": "register", "name": "buildooor", "signature": "$YOUR_ZILLIQA_SIGNATURE", "caller": "$ZILLIQA_PUBLIC_KEY"}' --token EXM_TOKEN_ID