HashDit Signature Security API
The Signature Security API from HashDit — 1 operation(s) for signature security.
The Signature Security API from HashDit — 1 operation(s) for signature security.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/hashdit:hashdit-signature-security-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: HashDit Signature Security API
description: HashDit threat intelligence API for domain security analysis, blockchain address classification, address poisoning detection, address security assessment, transaction security, token security, Solana token security, token approval security, and EIP-712 signature security
version: 2.0.0
servers:
- url: https://service.hashdit.io
tags:
- name: Signature Security
paths:
/v2/hashdit/eip712-security:
post:
summary: EIP-712 Signature Security
description: Analyze an EIP-712 typed-data signing request before the user signs it. Returns a risk assessment with `recommended_action` (`ALLOW`, `WARN`, or `BLOCK`).
operationId: eip712Security
requestBody:
description: EIP-712 typed-data payload. Pass `eip712Message` through as the dApp sent it to the wallet.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Eip712SecurityRequest'
examples:
Unlimited permit:
summary: Permit on a dApp URL — typical wallet pre-sign check
value:
address: '0x1d99c0ac928f58595b9d060c79f799fa38d171f4'
chain_id: 1
url: https://app.uniswap.org
eip712_message:
primaryType: Permit
types:
EIP712Domain:
- name: name
type: string
- name: chainId
type: uint256
- name: verifyingContract
type: address
Permit:
- name: owner
type: address
- name: spender
type: address
- name: value
type: uint256
- name: nonce
type: uint256
- name: deadline
type: uint256
domain:
chainId: 1
name: USD Coin
verifyingContract: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'
message:
owner: '0x1d99c0ac928f58595b9d060c79f799fa38d171f4'
spender: '0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45'
value: 1000000
nonce: 5
deadline: 1775000000
responses:
'200':
description: Successful response. Envelope is `{code, status, data}`. Use `data.recommended_action` as the decision.
content:
application/json:
schema:
$ref: '#/components/schemas/Eip712SecurityResponse'
examples:
Unlimited permit:
summary: '`BLOCK` — blacklisted URL and unlimited permit'
value:
code: '0'
status: ok
data:
overall_score: 5
overall_risk_level: Significant Risk
intent: TOKEN_APPROVAL
recommended_action: BLOCK
risk_details:
- name: eip712_url_blacklisted
value:
url: https://malicious-dapp.com
score: 5
risk_level: Significant Risk
description: There are potential risks in the dApp url based on the threat intelligence.
- name: eip712_permit_max_uint_allowance
value:
max_value: '115792089237316195423570985008687907853269984665640564039457584007913129639935'
threshold: extreme
score: 4
risk_level: High Risk
description: Permit-like signature contains near-unlimited allowance.
entities:
addresses:
'0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45':
score: 0
risk_level: No Obvious Risk
'0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48':
score: 0
risk_level: No Obvious Risk
url:
score: 5
risk_level: Significant Risk
verifyingContract:
score: 0
risk_level: No Obvious Risk
Clean:
summary: '`ALLOW` — no checkpoints fired'
value:
code: '0'
status: ok
data:
overall_score: 0
overall_risk_level: No Obvious Risk
intent: TOKEN_APPROVAL
recommended_action: ALLOW
risk_details: []
entities:
addresses:
'0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45':
score: 0
risk_level: No Obvious Risk
verifyingContract:
score: 0
risk_level: No Obvious Risk
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'422':
$ref: '#/components/responses/UnprocessableEntity'
'429':
$ref: '#/components/responses/RateLimitExceeded'
'500':
$ref: '#/components/responses/InternalServerError'
security:
- apiKeyAuth: []
tags:
- Signature Security
components:
schemas:
Eip712Message:
type: object
description: Standard EIP-712 typed-data payload. Pass through whatever the dApp handed the wallet.
required:
- types
- primaryType
- domain
- message
properties:
types:
type: object
description: Type definitions. Must include `EIP712Domain`.
additionalProperties:
type: array
items:
$ref: '#/components/schemas/Eip712TypeField'
primaryType:
type: string
description: Primary struct name, e.g. `Permit`.
example: Permit
domain:
type: object
description: EIP-712 domain separator fields (`name`, `chainId`, `verifyingContract`, …).
additionalProperties: true
message:
type: object
description: The typed message body.
additionalProperties: true
Eip712SecurityResponse:
type: object
properties:
code:
type: string
description: API status code. `"0"` indicates success.
example: '0'
status:
type: string
example: ok
data:
$ref: '#/components/schemas/Eip712SecurityData'
required:
- code
- status
Eip712EntityRisk:
type: object
properties:
score:
type: integer
description: 0–5.
risk_level:
type: string
RateLimitExceededErrorResponse:
type: object
properties:
code:
type: string
description: '`429`'
example: '429'
status:
type: string
description: '`error`'
example: error
message:
type: string
description: Rate limit exceeded
example: Rate limit exceeded
required:
- code
- status
MissingAPIKeyErrorResponse:
type: object
properties:
code:
type: string
description: '`401`'
example: '401'
status:
type: string
description: Missing API key
example: Missing API key
detail:
type: string
description: Missing API key
example: Missing API key
required:
- code
- status
- detail
CurrentServiceError:
type: object
properties:
code:
type: string
description: Error code. Typically `-1` for client errors, `-2` for server errors, or `401` / `429` for auth and rate limits.
status:
type: string
description: Short error status string.
detail:
type: string
description: Human-readable explanation of the error. Names the field that was rejected when the request is invalid.
required:
- code
- status
Eip712SecurityData:
type: object
properties:
overall_score:
type: integer
description: Maximum risk score across all checkpoints, 0–5.
overall_risk_level:
type: string
description: Label for `overall_score`.
intent:
type: string
description: What the user is actually signing. See the endpoint page for the value list.
recommended_action:
type: string
description: '`"ALLOW"`, `"WARN"`, or `"BLOCK"`. Use this as the decision — do not derive a cutoff from `overall_score`.'
enum:
- ALLOW
- WARN
- BLOCK
risk_details:
type: array
description: Triggered checkpoints. Empty when nothing fired. Branch on `name`, not `description`.
items:
$ref: '#/components/schemas/Eip712RiskDetail'
entities:
$ref: '#/components/schemas/Eip712Entities'
Eip712TypeField:
type: object
required:
- name
- type
properties:
name:
type: string
type:
type: string
Eip712RiskDetail:
type: object
properties:
name:
type: string
description: Stable checkpoint identifier. Branch on this, not on `description`.
value:
type: object
description: Checkpoint-specific evidence. Shape depends on `name` — see the catalogue on the endpoint page.
additionalProperties: true
score:
type: integer
description: 0–5 for this finding.
risk_level:
type: string
description: Label for `score`.
description:
type: string
description: Explanation of what was detected. Wording is not stable — do not parse it.
Eip712Entities:
type: object
properties:
addresses:
type: object
description: Always present. Map of address → `{score, risk_level}` for every address extracted from the message.
additionalProperties:
$ref: '#/components/schemas/Eip712EntityRisk'
url:
allOf:
- $ref: '#/components/schemas/Eip712EntityRisk'
description: Present when `url` was supplied in the request (and enrichment succeeded).
verifyingContract:
allOf:
- $ref: '#/components/schemas/Eip712EntityRisk'
description: Present when the domain declares a `verifyingContract`.
Eip712SecurityRequest:
type: object
required:
- address
- chain_id
- eip712_message
properties:
address:
type: string
description: Signer's wallet address.
example: '0x1d99c0ac928f58595b9d060c79f799fa38d171f4'
chain_id:
type: integer
description: Chain of the signing request.
example: 1
url:
type: string
description: URL of the dApp requesting the signature. Enables domain-reputation checks. Send it whenever you have it.
example: https://app.uniswap.org
eip712_message:
$ref: '#/components/schemas/Eip712Message'
responses:
BadRequest:
description: Bad request — malformed or missing field, unsupported chain, or invalid address. `detail` names the field that was rejected.
content:
application/json:
schema:
$ref: '#/components/schemas/CurrentServiceError'
examples:
Invalid request:
summary: Malformed or missing field
value:
code: '-1'
status: invalid request
detail: …
Unsupported chain:
summary: Chain not enabled for this endpoint
value:
code: '-1'
status: unsupported chain
detail: 'unsupported chainId: 137'
Invalid address:
summary: Address fails the format check for that chain
value:
code: '-1'
status: invalid address
detail: …
InternalServerError:
description: Server-side failure
content:
application/json:
schema:
$ref: '#/components/schemas/CurrentServiceError'
examples:
Internal server error:
summary: Internal server error
value:
code: '-2'
status: internal server error
detail: internal server error
RateLimitExceeded:
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitExceededErrorResponse'
examples:
Rate limit exceeded:
summary: Rate limit exceeded error
value:
code: '429'
status: error
message: Rate limit exceeded
UnprocessableEntity:
description: Schema validation failed. `detail` names the failing field path.
content:
application/json:
schema:
$ref: '#/components/schemas/CurrentServiceError'
examples:
Field required:
summary: Schema validation
value:
code: '-1'
status: invalid request
detail: 'chainId: field required'
Field path:
summary: detail names the failing field path
value:
code: '-1'
status: invalid request
detail: evm_transactions[0].from
Unauthorized:
description: Missing or invalid `X-API-KEY`. This is the response customers see on current-service endpoints.
content:
application/json:
schema:
$ref: '#/components/schemas/MissingAPIKeyErrorResponse'
examples:
Missing API key:
summary: Missing or invalid API key
value:
code: '401'
status: Missing API key
detail: Missing API key
securitySchemes:
apiKeyAuth:
type: apiKey
in: header
name: X-API-KEY