Inspections

Get all protocol inspections.

GET https://api.ironblocks.com/{protocolName}/{chainId}?/{contractAddress}?/inspections

Path Parameters

NameTypeDescription

protocolName*

string

A protocol name.

chainId

integer

Filter by blockchain id.

contractAddress

string

Filter by contract address.

Query Parameters

NameTypeDescription

id

[string]

Filter by ids.

hash

string

Filter by transaction hash.

origin

string

Filter by transaction origin.

status

enum

Filter by inspection status:

ok,suspecious,critical

detected

[string]

Filter by detected detectors.

startDate

date-time

Filter by greater than date.

endDate

date-time

Filter by less than date.

pageNumber

integer

Specify page number for pagination.

pageSize

integer

Specify page size for pagination.

sort

enum

Sort results in ascending or descending order:

asc,dsc

{
  "page": [
    {
      "_id": "63c3d06262ed501baasa",
      "chainId": 122,
      "txHash": "0x11112133123",
      "txTimestamp": "2023-01-15T10:07:30.000Z",
      "txOrigin": "0x1231232111",
      "assets": [
        {
          "address": "0xasdadsaa",
          "descriptor": "Contract1"
        },
        {
          "address": "0xaaaasdad",
          "descriptor": "Contract2"
        }
      ],
      "protocol": "protocol1",
      "invokedMethodName": "someName",
      "assessment": "ok",
      "actions": [],
      "detections": {
        "drasticBalanceChange": {
          "status": "notDetected",
          "message": ""
        },
        "reentrancy": {
          "status": "notDetected",
          "message": ""
        }
      },
      "createdAt": "2023-01-15T10:07:30.459Z",
      "updatedAt": "2023-01-15T10:07:30.459Z"
    }
  ],
  "pageNumber": 1,
  "total": 980
}
curl -X 'GET' \
  'https://api.ironblocks.com/your-protocol-name/inspections?sort=dsc' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer ${YOUR-API-KEY}'

Statistics

Get protocol inspection stats.

GET https://api.ironblocks.com/{protocolName}/{chainId}?/{contractAddress}?/inspections/stats

Path Parameters

NameTypeDescription

protocolName*

string

The name of the inspected protocol.

chainId

integer

Filter by blockchain id.

contractAddress

integer

Filter by contract address.

Query Parameters

NameTypeDescription

id

[string]

Filter by ids.

hash

string

Filter by transaction hash.

origin

String

Filter by transaction origin.

status

enum

Filter by inspection status:

ok,suspecious,critical

detected

[string]

Filter by detected detectors.

startDate

date-time

Filter by greater than date.

endDate

date-time

Filter by less than date.

pageNumber

integer

Specify page number for pagination.

pageSize

integer

Specify page size for pagination.

sort

enum

Sort results in ascending or descending order:

asc,dsc

{
  "page": 204,
  "critical": 5,
  "suspicious": 10,
  "total": 219
}
curl -X 'GET' \
  'https://api.ironblocks.com/your-protocol-name/inspections/stats?sort=dsc' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer ${YOUR-API-KEY}'

Last updated