The EXM contract below is an example implementation of a contract that uses EVM for contract's caller authentication (action.caller
or similarly to msg.sender
), empowered by signer
atom of evm
molecule.
- Live deployment: XUjW9BgKrhVa0MQg7Y73Frh3xwaZmRHPtSo_WlhhG6w
- source code: ./contract.js
- EXM SDK
npm i -g @execution-machine/sdk
- EXM API token ID: visit exm.dev
To register a name
in the contract example, you have first to sign with you wallet the message used for verification in the contract's example which is hello world
- sign on etherscan
Copy the signed message to use for the EXM interaction's input
exm function:write XUjW9BgKrhVa0MQg7Y73Frh3xwaZmRHPtSo_WlhhG6w --input '{"function": "register", "name": "buildooor", "signature": "$YOUR_SIGNATURE_ETHERSCAN", "caller": "$YOUR_ADDRESS_USED_FOR_SIGINING"}' --token EXM_TOKEN_ID