Product

DeFi Compliance SDK
One Line of Code

Add OFAC compliance to any DeFi frontend with a single script tag. Screens every transaction against sanctions lists and scam databases before it reaches the wallet.

Capabilities

Compliance that doesn't break your DApp

Drop-In Script Tag

One script tag in your HTML. No npm install, no build step, no framework dependency. Works with React, Vue, Svelte, or plain HTML.

MetaMask & EIP-6963 Interception

Automatically patches window.ethereum.request() and intercepts all EIP-6963 announced wallet providers. Every eth_sendTransaction is screened.

3 Enforcement Modes

"warn" shows dismissible warnings. "block-sanctioned" blocks OFAC addresses. "strict" blocks both sanctioned and high-risk. Choose your compliance posture.

Event Callbacks

Subscribe to checked, riskDetected, blocked, allowed, userProceeded, and userCancelled events. Integrate with your analytics and logging.

Shadow DOM (No CSS Conflicts)

The risk warning modal renders inside a closed Shadow DOM. Your app CSS cannot affect it. It cannot affect your app. Zero visual side effects.

5KB Zero-Dependency

The entire SDK is a single IIFE under 5KB gzipped. No external dependencies. No polyfills needed. Works in all modern browsers.

Integration

Add compliance in 30 seconds

Add this to your HTML (before </body>)
<script
  src="https://chainevidence.net/api/v1/sdk.js"
  data-key="YOUR_API_KEY"
  data-mode="block-sanctioned"
></script>
warn

Dismissible warning for risky addresses. Users can always proceed. Best for general DeFi.

block-sanctioned

Blocks OFAC-sanctioned addresses. Warns on high risk. Recommended for regulated platforms.

strict

Blocks sanctioned and high-risk addresses. Warns on medium. Maximum protection.

Optional: Listen to events
window.ChainEvidence.on('blocked', function(data) {
  console.log('Blocked transaction to', data.address);
  analytics.track('tx_blocked', {
    address: data.address,
    score: data.risk.score,
    reason: data.risk.level
  });
});

window.ChainEvidence.on('userProceeded', function(data) {
  console.log('User accepted risk for', data.address);
});
Who It's For

Every DeFi frontend needs compliance

DeFi Protocols

Protect your users from sending funds to scam addresses or interacting with sanctioned wallets. One line of HTML for your frontend.

DEX Aggregators

Screen destination addresses before swaps execute. Show risk warnings without blocking legitimate trades. Satisfy OFAC requirements.

NFT Marketplaces

Screen buyer and seller addresses before NFT transfers. Flag sanctioned addresses. Show risk context to marketplace participants.

Bridge UIs

Screen destination addresses on the target chain before cross-chain transfers. Critical for bridges where reversals are impossible.

Pricing

99% cheaper than enterprise tools

per address check

Cached results (5min TTL) are free. 20 free checks included.

Chainalysis charges $50,000+/year for similar OFAC screening. With ChainEvidence, a DeFi protocol doing 10,000 checks/month pays $100. No contracts, no minimums.

Protect your users in 30 seconds

One script tag. Zero dependencies. Every transaction screened against sanctions lists and scam databases before it reaches the wallet.