Skip to main content

Signature Analysis API

Endpoint

https://api.hashdit.io/security-api/public/chain/v1/detect/signature
HeaderDescription
Content-Typeapplication/json;charset=UTF-8
X-Signature-appidAppid, unique code
X-Signature-timestampTimestamp, millisecond
X-Signature-nonceRandom uuid, replace “-” with “”,32 byte length
X-Signature-signatureSignature,lowercase,check below for sign details

Body

NameRequiredTypeDescriptionExample
chain_idYesStringThe chain id of the blockchain1 - Ethereum
56 - BSC
137 - Polygon
urlYesStringUrl or Domainhttp://pancakak.com/
Pancakak.com
PANCAKAK.COM
http://a.b.pancakak.com/abc
methodYesStringSigning methodeth_sign
personal_sign
eth_signTypedData_v4
messageYesStringOriginal signing message0x4578616d706c652060706572736f6e616c5f7369676e60206d657373616765

Response

NameNullableTypeExample
statusNoStringOK/ERROR
codeNoString00001:verify signature error
> appid, timestamp, nonce, signature headers can not be null or empty
> nonce is illegal
> timestamp has illegal
> timestamp is expired
> invalid appid
> appid has expired
> invalid signature
> replay request
> app is out of count limit
00002:unknown server error occurred during verifying signature
00003:unknown server error occurred during detection
dataYes
data.request_idNoStringUnique request id
data.typeNoStringPermit
NFT_Listing
data.risk_levelNoInteger-1: Invalid
0: Very Low Risk
1: Some Risk
2: Low Risk
3: Medium Risk
4: High Risk
5: Significant Risk
data.risk_detailNoString[{
"name": "eth-sign-method",
"value": "Signing with a vulnerable method."
},
{
"name": "sign-transaction"
"value": "Potentially signing a transaction."
}]
data.risk_itemYes
data.risk_item.urlYesJson{
"risk_level": 3,
"risk_detail":
" [{\"name\":\"threat_researcher\",\"value\":\"The website is referenced in reports by Threat researchers.\"}]"
}
data.risk_item.addressYesJson{
"0x67f51179b59d32563a1ad370b717a82cfb081ced": {
"risk_level": 2,
"risk_detail":
"[{\"name\":\"is_in_blist\",\"value\":\"There are potential risks related to this address based on the threat intelligence.\"}]"
},
"0x67f51179b59d32563a1ad370b717a82cfb081ced": {
"risk_level": 2,
"risk_detail":
"[{\"name\":\"modify-fee\",\"value\":\"The contract transaction fee is modifiable, if it is increased dramatically, users may encounter honeypot/rugpull risks.\"}]"
}
}

Risk Detail

The risk_detail will comprise of an array of objects, the object contain the following fields name : name of the check. value: check result

NameValue
url-high-risk-signatureSignature triggered on a malicious website.
approve-huge-amountApproving a huge amount of assets.
approve-to-eoaApproving to an EOA address.
approve-to-high-riskApproving to a high risk address.
eth-sign-methodSigning with a vulnerable method.
sign-transactionPotentially signing a transaction.
sign-last-long-periodThis signature could be valid for a long period.
mismatched-chain-idThis is a meaningless transaction with a mismatched chain id.