The EXM contract below is an example implementation of a contract that uses Solana for contract's caller authentication (action.caller
), empowered by auth
atom of sol
molecule.
- Live deployment: sxXyYeps7Lo7_4qZ0pyNScn99UehACYEH7vapNBFBwM
- 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
- online signing (untrusted, use burner wallet)
Copy the signed message (use base58 format) to use for the EXM interaction's input
exm function:write sxXyYeps7Lo7_4qZ0pyNScn99UehACYEH7vapNBFBwM --input '{"function": "register", "name": "buildooor", "signature": "$YOUR_SOLANA_SIGNATURE", "caller": "$SOL_ADDRESS_USED_FOR_SIGINING"}' --token EXM_TOKEN_ID