Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1012 Bytes

wtf.md

File metadata and controls

24 lines (17 loc) · 1012 Bytes

About

The EXM contract below is an example implementation of a contract that uses fuel.network for contract's caller authentication (action.caller), empowered by tez-auth atom of tez 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 CLI

exm function:write BtYfeaPLk3BA3Fg9-umNpmVzhNdEuyUw05U4xnqxI2k --input '{"function": "register", "name": "buildooor", "signature": "$TEZ_SIGNATURE", "caller": "$TEZ_CALLER_PUBKEY"}' --token EXM_TOKEN_ID