PROFESSIONAL PLAN FEATURE

DeFi Integration & Wallet Plugin

Integrate AI Active Shield into your protocol, wallet, or dApp for real-time protection against exploits and fraud

REST API
Integrate protection into your smart contracts
Wallet Plugin
MetaMask extension for transaction protection
Live Dashboard
Monitor protection status in real-time
REST API Integration
Integrate real-time threat detection and circuit breaker functionality into your smart contracts

Base URL

https://www.solay39.eu//v1/shield

Authentication

All requests require your Professional Plan API key in the header

Authorization: Bearer YOUR_API_KEY

POST/check-transaction

Check if a transaction should be blocked before execution

{
  "contractAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
  "functionName": "transfer",
  "params": ["0x123...", "1000000000000000000"],
  "from": "0xabc...",
  "value": "0",
  "gasLimit": "21000"
}

Response

{
  "safe": true,
  "riskScore": 15,
  "threats": [],
  "recommendation": "ALLOW",
  "analysis": {
    "flashLoanRisk": false,
    "reentrancyRisk": false,
    "priceManipulation": false,
    "suspiciousPattern": false
  },
  "timestamp": "2024-01-15T10:30:00Z"
}

Solidity Integration Example

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface ISolay39Shield {
    function checkTransaction(
        address from,
        bytes memory data
    ) external returns (bool safe, uint256 riskScore);
}

contract ProtectedDeFi {
    ISolay39Shield public shield;
    
    constructor(address _shield) {
        shield = ISolay39Shield(_shield);
    }
    
    modifier protected() {
        (bool safe, uint256 risk) = shield.checkTransaction(
            msg.sender,
            msg.data
        );
        require(safe && risk < 50, "Transaction blocked by AI Shield");
        _;
    }
    
    function transfer(address to, uint256 amount) 
        external 
        protected 
    {
        // Your transfer logic here
    }
}

Ready to Integrate AI Active Shield?

Upgrade to Professional Plan to get your API key and start protecting your users today

Need Help with Integration?
Our team is here to help you integrate AI Active Shield