Step by step guide
Trustblock’s step by step guide to publish an audit
Sign in
Head to app.trustblock.run to sign in.
Head to your profile
Click on your name at the top right of the screen.
Publish an audit
At the bottom of your profile’s page, you’ll see a “Publish an audit” button redirecting you to the audit publication form once you click on it.
Fill the form
Follow the instructions on the form and submit it.
Sign in
Head to app.trustblock.run to sign in.
Head to your profile
Click on your name at the top right of the screen.
Publish an audit
At the bottom of your profile’s page, you’ll see a “Publish an audit” button redirecting you to the audit publication form once you click on it.
Fill the form
Follow the instructions on the form and submit it.
To publish an audit through our API, you must structure your data object in a specific way involving four parts: audit, issues, contracts, and project.
1. Audit data
To obtain a valid reportFileCid
, you will have to perform an upload on our IPFS provider, Pinata.
In order to upload a file successfully, you will first have to fetch the necessary authorization to do so by calling our dedicated route.
Get upload report authorization
Once you have retrieved your authorization response from the previous request, you must upload the file effectively.
To obtain a valid reportFileCid
, you will have to perform an upload on our IPFS provider, Pinata.
In order to upload a file successfully, you will first have to fetch the necessary authorization to do so by calling our dedicated route.
Get upload report authorization
Once you have retrieved your authorization response from the previous request, you must upload the file effectively.
If you want to publish an audit with a web based report, you will have to submit a valid URL through the reportUrl
field.
2. Issues data
Every issues have two attributes: status (IssueStatus
) & severity (IssueSeverity
).
An issue status can either be fixed
or not_fixed
.
An issue severity can either be low
, medium
, high
or critical
.
not_fixed
critical
ones.
We are always welcoming suggestions, so don’t hesitate to contact us!All your issues must be stored inside a list passed to the main request body.
3. Contracts data
Every contract has a type (ContractType
) field, which can either be: onChain
, offChainPublic
or offChainPrivate
.
Depending on the type, the contract must have different fields.
Additionally, to the type field, two other fields are required to submit an on-chain contract: address
& chain
.
chain
can either be one of the supported chains.
Additionally, to the type field, two other fields are required to submit an on-chain contract: address
& chain
.
chain
can either be one of the supported chains.
A public repository contract needs three fields: repositoryUrl
, repositoryCommitHash
& repositoryFilePath
.
A private repository contract needs one field: name
.
4. Project data
Our system will automatically check if the audit’s project already exists in our database by relying on links.website.
chain
can either be one of the supported chains.
links
, name
, description
, chains
and tags
.5. Final data
6. Sending the request
Once you have structured your data object, you can send the request to our API.
Publish audit
And then what?
That’s it! Your audit is published and now accessible through our system.
We refresh metrics on Trustblock every day at a fixed time, and as such, your profile should be updated pretty soon after publishing your audits with the newest metrics.
Metrics Widget
Learn how to integrate Trustblock’s metrics widget on your website.
The audit you publish will now be available from labels and API. Check the links below for more information.
Labels Widget
Learn how to integrate Trustblock’s labels on your website.
Security Data API
Learn how to integrate Trustblock’s security data API on your website.