馃摉
Crystal-Clear Docs
Dashboard
  • MAB.XYZ Docs
  • Features
  • Backend API
    • Health
    • Analysis
    • Info
    • Default
    • Models
Powered by GitBook
On this page
  1. Backend API

Info

PreviousAnalysisNextDefault

Get latest block number

get

Fetch the latest block number from the Ethereum network.

Responses
200
Successful Response
application/json
500
Internal server error
application/json
get
GET /info/block-latest HTTP/1.1
Host: crystal-clear.mab.xyz
Accept: */*
{
  "block_number": 1
}

Get deployment information

get

Fetch deployment information for a given contract address.

Path parameters
addressstringRequired
Responses
200
Successful Response
application/json
404
Deployment information not found
application/json
422
Input validation error
application/json
500
Internal server error
application/json
get
GET /info/deployment/{address} HTTP/1.1
Host: crystal-clear.mab.xyz
Accept: */*
{
  "address": "text",
  "deployer": "text",
  "deployer_eoa": "text",
  "tx_hash": "text",
  "block_number": 1
}

Get contract information

get

Fetch contract information for a given address.

Path parameters
addressstringRequired
Responses
200
Successful Response
application/json
404
Contract information not found
application/json
422
Input validation error
application/json
500
Internal server error
application/json
get
GET /info/verification/{address} HTTP/1.1
Host: crystal-clear.mab.xyz
Accept: */*
{
  "address": "text",
  "verification": "verified",
  "verifiedAt": "text"
}

Get proxy information

get

Fetch proxy information for a given address.

Path parameters
addressstringRequired
Responses
200
Successful Response
application/json
404
Proxy information not found
application/json
422
Input validation error
application/json
500
Internal server error
application/json
get
GET /info/proxy/{address} HTTP/1.1
Host: crystal-clear.mab.xyz
Accept: */*
{
  "address": "text",
  "type": "text",
  "message": "text"
}

Get permissioned functions for a contract

get

Fetch functions that have permission checks for a given contract address.

Path parameters
addressstringRequired
Responses
200
Successful Response
application/json
404
Permissions information not found
application/json
422
Input validation error
application/json
500
Internal server error
application/json
504
Request timed out
application/json
get
GET /info/permissions/{address} HTTP/1.1
Host: crystal-clear.mab.xyz
Accept: */*
{
  "address": "text",
  "functions": [
    "text"
  ]
}
  • GETGet latest block number
  • GETGet deployment information
  • GETGet contract information
  • POSTGet scorecard data
  • GETGet proxy information
  • GETGet permissioned functions for a contract

Get scorecard data

post

Fetch scorecard data for a given repository.

Body

Request model for scorecard data.

orgstring 路 min: 1 路 max: 50Required

GitHub organization name

repostring 路 min: 1 路 max: 100Required

GitHub repository name

Responses
200
Successful Response
application/json
404
Scorecard data not found
application/json
422
Input validation error
application/json
500
Internal server error
application/json
post
POST /info/reposcore HTTP/1.1
Host: crystal-clear.mab.xyz
Content-Type: application/json
Accept: */*
Content-Length: 28

{
  "org": "text",
  "repo": "text"
}
{
  "repo_info": "text",
  "source": "text",
  "score": 1,
  "date": "text",
  "checks": [
    {
      "ANY_ADDITIONAL_PROPERTY": "anything"
    }
  ]
}