Trustblock
Search…
⌃K
🌐

API documentation

Get audits from a smart contract

GET
https://o6ms1bg1o7yv.usemoralis.com:2053/server/functions/getSmartContractAudits
?ApplicationId=TADcmt7xE1UAOSMhg21thDCTTFmG5RA0715JMEby
&address=<Required: the address of the smart contract>
&chainId=<Required: the chain where the smart contract is hosted>
&selection=<Optional(address): will filter the results, with audits only published by the address's upvoted auditors>
RESPONSE
{
"result": [
{
"auditor": {
"name": <Name of the audit>,
"description": <Description of the audit in markdown>,
"logo": <Url to the auditor's logo>,
"stats": <Object containing auditor's stats>
},
"name": <Name of the audit>,
"description": <Description of the audit in markdown>,
"lowIssuesDetails": <Array of low severity issues descriptions in markdown>,
"mediumIssuesDetails": <Array of critical medium issues descriptions in markdown>,
"highIssuesDetails": <Array of critical high issues descriptions in markdown>,
"criticalIssuesDetails": <Array of critical severity issues descriptions in markdown>,
"lowIssues": <Number of low severity issues>,
"mediumIssues": <Number of medium severity issues>,
"highIssues": <Number of high severity issues>,
"criticalIssues": <Number of critical severity issues>,
"smartContracts": <Array of smart contracts' addresses in the scope of the audit>,
"url": <Url to the audit page>
},
...
]
}