CUBE3 Documentation
  • CUBE3 Documentation
  • Detect Products
    • Inspector
    • Monitor
    • Sonar
      • Sonar Feeds
  • Protect Products
    • RASP
      • Quick Start
        • ERC-20 Non-Upgradeable (Foundry)
        • ERC-20 Non-Upgradeable (Hardhat)
        • ERC-20 Upgradeable (Foundry)
        • ERC-20 Upgradeable (Hardhat)
      • RASP Integration
        • 1. Installation
        • 2. Integration
        • 3. Deployment
        • 4. Registration
        • 5. Interaction
        • 6. Inspection
      • CUBE3 Protocol
      • CUBE3 SDK
  • Manage Products
    • Transactions
    • Alerts
      • Email Integration
      • Slack Integration
      • Telegram Integration
      • Discord Integration
      • Webhook Integration
    • Rules
  • API Documentation
    • Inspector API
    • Validation API
      • Troubleshooting
    • Management API
      • Monitor API
      • Alert API
      • Control lists API
    • Authentication
    • API Rate Limits
  • Risk Engine
    • Risk Scoring Introduction
    • Risk Scoring Detailed Overview
  • Settings
    • Billing
    • Organization
    • API Keys
  • Supported Blockchain Networks
    • CUBE3 Detect Products
    • CUBE3 Protect Products
  • Testing Guide
Powered by GitBook
On this page
  1. API Documentation

Validation API

PreviousInspector APINextTroubleshooting

Last updated 4 months ago

The Validation API provides endpoints for validating a transaction by sending the transaction data and other relevant information. It is secured using a Validation API key found under in Panorama UI. The usage of the APIs is described in the CUBE3 SDK.

Deprecated:

Deprecated:

How to Authenticate the APIs
Settings > API keys
post
Authorizations
Header parameters
X-Tenant-IdstringRequired
X-Api-KeystringRequired
X-Validation-ProductstringRequired
X-InitiatorstringOptional
Body
trackNoncebooleanRequired

Indicates whether to track the nonce of the transaction

signTransactionbooleanOptional

Indicates whether the transaction should be signed

Responses
200
OK
*/*
post
POST /api/v2/transaction/validate HTTP/1.1
Host: validation-api-dev.cube3.ai
X-Api-Key: text
X-Tenant-Id: text
X-Validation-Product: text
Content-Type: application/json
Accept: */*
Content-Length: 191

{
  "transaction": {
    "to": "text",
    "from": "text",
    "nonce": "text",
    "data": "text",
    "value": "text",
    "chainId": "text"
  },
  "trackNonce": true,
  "clientData": {
    "userAgent": "text",
    "ip": "text"
  },
  "signTransaction": true
}
200

OK

{
  "valid": true,
  "payload": "text",
  "combinedScore": 1,
  "combinedScoreDetails": {
    "value": 1,
    "category": "text",
    "subCategory": "text",
    "subCategoryDescription": "text",
    "hops": 1
  },
  "scoreDetails": {
    "ANY_ADDITIONAL_PROPERTY": {
      "value": 1,
      "category": "text",
      "subCategory": "text",
      "subCategoryDescription": "text",
      "hops": 1
    }
  },
  "controlLists": [
    {
      "id": "text",
      "address": "text",
      "chainIds": [
        "text"
      ],
      "type": "ALLOW",
      "productType": "SONAR",
      "createdAt": "2025-05-16T09:09:53.116Z",
      "lastUpdatedAt": "2025-05-16T09:09:53.116Z"
    }
  ],
  "internalAddressesWithMaxScore": [
    {
      "address": "text",
      "name": "text",
      "maxScore": 1,
      "category": "text",
      "subCategory": "text",
      "subCategoryDescription": "text",
      "subCategoriesAndTags": [
        {
          "category": "text",
          "subCategory": "text",
          "subCategoryDescription": "text"
        }
      ]
    }
  ],
  "error": "text",
  "cube3TxId": "text"
}
put
Authorizations
Path parameters
cube3-transaction-idstringRequired
Header parameters
X-Tenant-IdstringRequired
X-InitiatorstringOptional
Body
transactionIdstringOptional

Real transaction id on chain.

blockNumberstringOptional

Transaction on chain block number.

blockTimestring ยท date-timeOptional

Transaction on chain block time.

Responses
200
OK
put
PUT /api/v2/transaction/{cube3-transaction-id} HTTP/1.1
Host: validation-api-dev.cube3.ai
X-Api-Key: YOUR_API_KEY
X-Tenant-Id: text
Content-Type: application/json
Accept: */*
Content-Length: 84

{
  "transactionId": "text",
  "blockNumber": "text",
  "blockTime": "2025-05-16T09:09:53.116Z"
}
200

OK

No content

  • POST/api/v2/transaction/validate
  • PUT/api/v2/transaction/{cube3-transaction-id}
  • POST/api/v1/transaction/validate
  • PUT/api/v1/transaction/{cube3-transaction-id}
post
Authorizations
Body
trackNoncebooleanRequired

Indicates whether to track the nonce of the transaction

signTransactionbooleanOptional

Indicates whether the transaction should be signed

Responses
200
OK
*/*
post
POST /api/v1/transaction/validate HTTP/1.1
Host: validation-api.cube3.ai
X-Api-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 191

{
  "transaction": {
    "to": "text",
    "from": "text",
    "nonce": "text",
    "data": "text",
    "value": "text",
    "chainId": "text"
  },
  "trackNonce": true,
  "clientData": {
    "userAgent": "text",
    "ip": "text"
  },
  "signTransaction": true
}
200

OK

{
  "valid": true,
  "payload": "text",
  "error": "text",
  "combinedScore": 1,
  "combinedScoreDetails": {
    "value": 1,
    "category": "text",
    "subCategory": "text",
    "subCategoryDescription": "text"
  },
  "cube3TxId": "text"
}
put
Authorizations
Path parameters
cube3-transaction-idstringRequired
Body
transactionIdstringRequired
blockNumberstringOptional
blockTimestring ยท date-timeOptional
Responses
200
OK
put
PUT /api/v1/transaction/{cube3-transaction-id} HTTP/1.1
Host: validation-api.cube3.ai
X-Api-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 84

{
  "transactionId": "text",
  "blockNumber": "text",
  "blockTime": "2025-05-16T09:09:53.116Z"
}
200

OK

No content