This page will show how to start using MythX in the shortest number of steps.
The quickest way to see MythX in action is by using a MythX tool such as the MythX for Truffle plugin.
No registration is required for this, though the results will be limited. See the section on using MythX for Truffle for more details.
In a terminal, navigate to the root of your local Truffle project.
Install the MythX plugin:
npm install truffle-security
Analyze all the contracts in the project with MythX:
truffle run verify
This will run a security analysis in Trial Mode, which limits the returned results to three vulnerabilities only. For a more complete report, you will need to create an account with MythX.
Creating an account¶
To get the full functionality of MythX, you need to create an account.
MythX requires MetaMask, a browser-based wallet application, in order to create accounts. You must be logged in to MetaMask before continuing. The active address will be associated with your account and be used for any plans you may purchase.
Go to https://mythx.io and slick the Sign Up button on the top right.
Fill out the registration form. You will need to supply a valid email address.
When finished, click Complete Registration.
A MetaMask popup will display, asking for confirmation. Click Sign to continue.
An API key will be generated for you and displayed. Please copy this key down, as you will not be able to retrieve it later. (You can generate a new one in your account dashboard if necessary.)
You will be sent an email to verify your address. You will need to verify your email address before you can use the MythX service.