Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1008 Bytes

wtf.md

File metadata and controls

24 lines (17 loc) · 1008 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 fuel-auth atom of fuel 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

EXM CLI

exm function:write amrBq6BJaApgVy1Znz-T_v3egfF-ntwMQLD3U2B80Ik --input '{"function": "register", "name": "buildooor", "signature": "$FUEL_SIGNATURE", "caller": "$FUEL_CALLER_ADDR"}' --token EXM_TOKEN_ID