API Reference
API endpoints and their associated responses.
/predictAddressSingle
responses
/predictAddressSingle
responses200
Success
{
"status": "success",
"data": {
"address": "0xc7[...]5a36",
"avgPrediction": 0.0233,
"module1": 0,
"module2": 0.0467,
"predictedClassId": 0,
"predictedClassName": "nonScammer"
}
}
This is the standard response. The model output avgPrediction
is the average of outputs from 2 modules. Each module is a different model than runs on the same data, in most cases their predictions will be very close.
200
Warning - Contract address
{
"status": "warning",
"data": {
"address": "0x00[...]600f",
"isContract": true
}
}
This is not an error per se. Our model only provides fraud assessments for EOA addresses and not smart contracts. Pass a non-smart contract to get the model results.
400
Low credits
{"error": "Not enough credits"}
400
Missing Address
{"error": "Address argument was not passed"}
Pass an Ethereum address in the body of the request. Param name address
400
Invalid Address type
{"error": "Invalid address: address must be of string type"}
Don't pass an array of addresses but a single 42-character ethereum address only.
400
Invalid Address format
{"error": "Invalid address: address must be an EVM address"}
Make sure your address complies with the EVM address format: 0x
followed by 40 hexadecimal characters.
400
Server error
{"error": "Request could not be processed, please retry"}
401
Unauthorized
{"error": "API Key is missing"}
Pass your API key in the X-API-Key
header of your request.
403
Forbidden
{"error": "Invalid API Key"}
Last updated