Security

Risk Intelligence. Now onchain for Solana programs

Real-time, verifiable risk assessments - now onchain

Jose S, Range

·

Oct 17, 2025

Risk Intelligence. Now onchain for Solana programs
Risk Intelligence. Now onchain for Solana programs

Web3 teams have long relied on off-chain analytics to assess address risk, trace fund flows, and screen for compliance issues. But what if you could bring that same intelligence directly into your smart contracts?

Today, we're introducing onchain account risk verification - powered by Range's Risk API and Switchboard's On-Demand Oracles. This new capability makes it possible for protocols to verify wallet and contract risk onchain, in real-time, using cryptographically signed data.

While our Onchain Risk Verifier is currently designed for Solana programs, the same logic can work for all EVM or CosmWasm smart contracts, allowing onchain risk analysis no matter which ecosystem you’re in. Get in touch with us to discuss your integration.

Why bring risk intelligence onchain?

At Range, we help secure over $30B in assets across chains. A constant request from our partners - especially lending protocols, treasuries, and bridges - has been to integrate our Risk API at the smart contract level.

Teams wanted a way to:

  • Prevent interactions with sanctioned or malicious addresses

  • Verify counterparty risk before releasing treasury funds

  • Evaluate borrower or user risk onchain

  • Enforce KYT (Know-Your-Transaction) compliance logic at the protocol layer

Until now, these checks were only possible off-chain - meaning critical security decisions relied on backend logic or UI-layer heuristics. With onchain risk feeds, we're enabling protocols on Solana to perform this verification directly within their program logic, ensuring it is fully transparent, signed, and trust-minimized.

How it works

The integration uses Switchboard's On-Demand Oracles to fetch a signed quote from Range's Risk API. The data is then verified inside your Solana program - allowing you to gate or allow behavior based on verifiable, up-to-date risk scores.

Here's the flow:

  1. The client fetches a signed risk quote from Range via a Switchboard OracleJob

  2. The quote includes the score and a signature from Switchboard oracles

  3. Your Solana program uses the Switchboard Quote Verifier to verify the signature and extract the result

This approach works seamlessly with Solana's synchronous runtime. The entire data flow is auditable and tamper-proof.

Why use Range's Onchain Risk Verifier

Security has historically lagged behind composability in DeFi. As protocols move faster and liquidity becomes more dynamic, traditional monitoring can't keep up. The $1.4 billion Bybit hack from earlier this year showed us how quickly bad actors can rotate stolen funds through different swap venues and ecosystems.

This onchain risk intelligence integration is a major shift. It brings real-time intelligence to Solana programs, aligning onchain enforcement with off-chain context.

Protocols on Solana can now:

  • Reject high-risk or sanctioned addresses at the contract level

  • Gate treasury actions or governance flows based on counterparty risk

  • Check a borrower’s risk score before approving collateral or loans

  • Build compliant flows for real-world asset issuance

  • Integrate attestation-aware logic alongside risk scoring

This unlocks a new design space for compliance-aware protocols, safer governance, and more resilient program logic.

Teams can define their own thresholds and rules, and customize logic based on their product's needs. Want to block wallets with a risk score over 7? Or only allow DAO payouts to wallets with attested KYC? Now you can.

Built with Switchboard

A huge thank you to the Switchboard team for their support, documentation, and flexibility. Their On-Demand Oracle architecture enables this integration without the cost or latency of persistent feeds - and ensures that Range's API can be queried and verified onchain without compromising security.

Switchboard is the fastest, most customizable and only permissionless oracle protocol. Trusted by 50+ leading decentralized applications, including Jito, Drift, Kamino, Project 0 and others, to help secure over $5 billion in value, Switchboard offers unparalleled data access across 10+ blockchains. Check them out here.

Get started with Onchain Risk Verifier

If your team is working on treasury tooling, swaps, lending, real-world assets, or anything that touches compliance and counterparty risk, this integration is available today.

Check out the implementation guide and book a demo to get started.

About Range

Range is the leading blockchain security and intelligence platform, operating across ecosystems. We work with teams like the Solana Foundation, Circle, dYdX, and Osmosis to deliver secure, cross-chain infrastructure. Our products include the industry’s first Cross-Chain Explorer – tracking activity across 105+ chains, bridges and interoperability protocols – as well as real-time monitoring, alerting, and forensic tools used by developers, security teams, and protocols alike.

From the USDC Explorer powering Circle’s CCTP to the Solana Transaction Security Standard adopted by Squads Protocol, Range’s tools secure over $30B in onchain assets. We also provide IBC Rate Limit contracts on Cosmos and Range Trail, our cross-chain forensics engine, to support investigations and incident response across networks.

The stablecoin risk and intelligence platform

Helping the best teams build and use DeFi protocols, blockchains, rollups, and cross-chain bridges with peace of mind.

Book an intro call

Skip the form. Choose a day and time that suits you to book an exploratory call or demo with our team.

Get in touch

Areas of interest*

The stablecoin risk and intelligence platform

Helping the best teams build and use DeFi protocols, blockchains, rollups, and cross-chain bridges with peace of mind.

Book an intro call

Skip the form. Choose a day and time that suits you to book an exploratory call or demo with our team.

Get in touch

Areas of interest*

The stablecoin risk and intelligence platform

Helping the best teams build and use DeFi protocols, blockchains, rollups, and cross-chain bridges with peace of mind.

Book an intro call

Skip the form. Choose a day and time that suits you to book an exploratory call or demo with our team.

Get in touch

Areas of interest*

The blockchain security and intelligence platform. Featuring a comprehensive security and risk management suite powered by machine learning and security expertise.

Resources

The blockchain security and intelligence platform. Featuring a comprehensive security and risk management suite powered by machine learning and security expertise.

Resources

The blockchain security and intelligence platform. Featuring a comprehensive security and risk management suite powered by machine learning and security expertise.

Resources