Security

The security endpoints can be used to retrieve details of vulnerability and security statistics of certain smart contracts of the protocols our system supports.

Retrieves the security vulnerability data of corresponding protocol.

get

This endpoint returns the security vulnerability data of given protocol for last 7 recorded documents.

Path parameters
protocolstringRequired

the name of the protocol, e.g. aave

Responses
200
OK
application/json
get
GET /data/security/{protocol}/vulnerabilities HTTP/1.1
Host: api.alterscope.org
Accept: */*
{
  "protocol": "aave",
  "vulnerability_statistics": {
    "high": 3,
    "low": 84,
    "medium": 3,
    "none": 0
  },
  "timestamp": "2023-11-02T01:00:28.045588377Z"
}

Note: The sample request below shows security data for aave protocol.

curl https://api.alterscope.org/data/security/aave/vulnerabilities -H "Authorization: Bearer <your_access_token>"

Note: For a comprehensive list of protocols whose security vulnerability data can be requested please refer to supported protocols page.

Retrieves the security static data of corresponding protocol.

get

This endpoint returns the latest available security static data of given protocol.

Path parameters
protocolstringRequired

the name of the protocol, e.g. aave

Responses
200
OK
application/json
get
GET /data/security/{protocol}/static HTTP/1.1
Host: api.alterscope.org
Accept: */*
{
  "protocol": "aave",
  "contract_creation_date": "Jun-08-2022 12:30:46 PM +UTC",
  "last_contract_update_date": "Jun-08-2022 12:30:46 PM +UTC",
  "num_hacks": 0,
  "most_active_contract": "0x301F221bc732907E2da2dbBFaA8F8F6847c170c3",
  "active_contract_num_transactions": 748,
  "team_visibility": true,
  "bounty_amount": 250000
}

Note: The sample request below shows security static data for aave protocol.

curl https://api.alterscope.org/data/security/aave/static -H "Authorization: Bearer <your_access_token>"

Note: For a comprehensive list of protocols whose data can be requested please refer to supported protocols page.

Retrieves the security score of corresponding protocol.

get

This endpoint returns the security score of given protocol for last 7 recorded documents.

Path parameters
chainstringRequired

the name of the chain protocol operates on, e.g. ethereum

protocolstringRequired

the name of the protocol, e.g. aave

Responses
200
OK
application/json
get
GET /score/security/{chain}/{protocol} HTTP/1.1
Host: api.alterscope.org
Accept: */*
{
  "chain": "ethereum",
  "protocol": "aave",
  "creation_score": 87.39463088808193,
  "monitoring_score": 0,
  "support_score": 0.75,
  "ux_score": 0,
  "score": 0.5851308725872129,
  "version": 2,
  "timestamp": "15-01-2024"
}

Note: The sample request below shows security score for the specified chain and its protocol.

curl https://api.alterscope.org/score/security/ethereum/aave -H "Authorization: Bearer <your_access_token>"

Note: For a comprehensive list of protocols and chains whose data can be requested please refer to supported protocols and chains page.

Last updated