Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@aurora-is-near/intents-swap-widget

Latest version: v7.32.0

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: alexmendes, aurorasec, chris-aurora
4 Stars
3 Forks
28 Versions
14.2K Downloads
TypeScript Repo language

Scan summary

@aurora-is-near/intents-swap-widget was last scanned on 25 Nov 2026 at version 7.32.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 28 versions; the latest was published on 25 Nov 2026.
  • Findings: No rules fired in version 7.32.0.
  • Downloads: 14,171 downloads.

Versions

28 versions published
Versions and the rules that fired in each
VersionPublishedStatus
7.32.0 LATEST 25 Nov 2026 No rules fired
7.31.0 12 Nov 2026 No rules fired
7.30.0 12 Nov 2026 No rules fired
7.29.0 2 Nov 2026 Not shown
7.28.0 28 Oct 2026 Not shown

No rules fired in 7.32.0

Findings

Findings for v7.32.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 7.32.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@aurora-is-near/intents-swap-widget

A React cross-chain swap widget powered by NEAR Intents. Drop it into your app and let users swap any supported asset across 35+ chains from a single UI, while you earn fees on every swap.

[!TIP] Just need a working widget with wallet connection built in? Use @aurora-is-near/intents-swap-widget-standalone. This package (the core) is for apps that already connect wallets and want full control.

Contents

  • At a glance
  • Widget Studio
  • Choose your integration
  • Quick start
  • How it works
  • Wallets and chain adapters
  • Configuration
  • Widgets and events
  • Theming and localisation
  • Subpath exports (build your own UI)
  • Troubleshooting
  • Documentation map

At a glance

What A React swap UI plus the hooks, state machine and components behind it
Routing NEAR Intents via the Aurora Intents API (1Click-compatible)
Chains 35+: EVM chains, Solana, NEAR, Stellar, TON, Bitcoin, Sui, Tron, XRP and more (full list)
Assets Anything the Intents API lists (supported assets)
Requires React >=18.2, an API key from Widget Studio
Wallets You bring them: pass addresses and providers in (see Wallets)
Fees Set per API key in Studio, or per swap with appFees
Privacy Optional confidential swaps (confidentialMode)

Widget Studio

Widget Studio is a no-code dashboard for the widget. Use it to:

  • 🔑 Get your API key. It is required, and it is also where your fees are configured.
  • 🌐 Pick networks and tokens, set default sell/buy tokens, and choose confidentiality mode.
  • 🎨 Design it: Clean or Bold style, accent and background colours, corner radius, container.
  • 👀 Preview it live before shipping.
  • 📦 Embed it: Embed in your app gives you an iframe link or a ready-to-paste React snippet.
  • 📊 Download reports of swaps made with your API keys (CSV).

[!NOTE] The API key is not secret. It is safe to ship in front-end code.

Choose your integration

flowchart TD
    A[I want a swap widget in my app] --> B{Need code-level control?}
    B -- No --> IF["<b>iframe</b><br/>Copy the link from Widget Studio"]
    B -- Yes --> C{Does your app already<br/>connect wallets?}
    C -- No --> SA["<b>@aurora-is-near/intents-swap-widget-standalone</b><br/>Wallet modal built in"]
    C -- Yes --> CORE["<b>@aurora-is-near/intents-swap-widget</b><br/>+ chain adapters you need"]
iframe Standalone package Core package (this one)
Setup effort 1 line ~5 lines Moderate
Wallet connection Built in Built in (AppKit, NEAR Connect, Stellar Wallets Kit) Yours
TON wallets – ❌ ✅
Hooks and events (onMsg) ❌ ✅ ✅
Custom transfers (makeTransfer) ❌ ✅ ✅
Bundle size control – All chain SDKs included Only adapters you install

Quick start

1. Install the core package and the adapter for each chain family your wallets support:

npm install @aurora-is-near/intents-swap-widget
# Add only what you need:
npm install @aurora-is-near/intents-swap-widget-evm      # Ethereum, Base, Arbitrum, …
npm install @aurora-is-near/intents-swap-widget-solana   # Solana
npm install @aurora-is-near/intents-swap-widget-stellar  # Stellar

2. Render the widget inside WidgetConfigProvider:

import '@aurora-is-near/intents-swap-widget/styles.css';

import {
  Widget,
  WidgetConfigProvider,
} from '@aurora-is-near/intents-swap-widget';
import { evm } from '@aurora-is-near/intents-swap-widget-evm';

export function Swap() {
  const { address, connect, disconnect } = useYourEvmWallet(); // your wallet lib

  return (
    <WidgetConfigProvider
      config={{
        apiKey: 'YOUR_STUDIO_API_KEY',
        connectedWallets: { default: address },
        providers: { evm: window.ethereum }, // any EIP-1193 provider
        plugins: { evm },
        onWalletSignin: connect,
        onWalletSignout: disconnect,
      }}
      theme={{ colorScheme: 'dark', accentColor: '#bc9cf8' }}>
      <Widget />
    </WidgetConfigProvider>
  );
}

That's a working swap widget. Next: add more chains, restrict tokens, or match your brand.

How it works

The widget never holds user funds. Each swap is a quote → deposit → settle flow:

sequenceDiagram
    autonumber
    actor U as User
    participant W as Swap Widget
    participant API as Aurora Intents API
    participant P as Chain adapter + wallet
    participant NI as NEAR Intents

    U->>W: Pick tokens and amount
    W->>API: Request quote (apiKey, fees, slippage)
    API-->>W: Quote + one-time deposit address
    U->>W: Click "Swap"
    W->>P: makeTransfer(amount → deposit address)
    P-->>W: Transaction hash (user signs in wallet)
    NI->>NI: Solvers fill the intent
    W->>API: Poll swap status
    API-->>W: Success, funds sent to recipient

The chain adapter (plugins.evm, plugins.sol, …) only handles step 5: sending funds from the user's wallet to the deposit address on the source chain. The rest is shared by all chains.

Wallets and chain adapters

The core package does not bundle chain SDKs. You pass three things for each chain family:

Config key What it is
connectedWallets Addresses keyed by chain, e.g. { default: '0x…', sol: '…', ton: 'UQ…' }. The widget uses the selected token's chain, falling back to default.
providers Signers the widget uses: evm, sol, stellar, near
plugins Adapter per chain family that performs the deposit transfer
Source chain family Adapter package plugins key providers value
EVM (Ethereum, Base, Arbitrum, BSC, Polygon, Optimism, Avalanche, Aurora, …) intents-swap-widget-evm evm EIP-1193 provider, or () => Promise<provider>
Solana intents-swap-widget-solana sol { publicKey, signMessage, signTransaction }
Stellar intents-swap-widget-stellar stellar { publicKey, signMessage, signTransaction }
NEAR Built in, no adapter needed – () => nearWallet
TON and others None: pass your own makeTransfer to the widget – –

Any supported chain can be a destination, whether or not the user has a wallet for it. With allowSwapWithExternalWallet, users can also deposit from any chain by sending to a QR-code address.

import { evm } from '@aurora-is-near/intents-swap-widget-evm';
import { sol } from '@aurora-is-near/intents-swap-widget-solana';
import { stellar } from '@aurora-is-near/intents-swap-widget-stellar';

const config = {
  apiKey: 'YOUR_STUDIO_API_KEY',
  connectedWallets: {
    default: evmAddress,
    sol: solanaAddress,
    stellar: stellarAddress,
    near: nearAccountId,
    ton: tonAddress,
  },
  providers: {
    evm: window.ethereum,
    sol: { publicKey, signMessage, signTransaction },
    stellar: { publicKey: stellarAddress, signMessage, signTransaction },
    near: () => nearWallet,
  },
  plugins: { evm, sol, stellar },
  onWalletSignin: openWalletModal,
  onWalletSignout: disconnect,
};

Adapter guides for Privy, NEAR and TON: 📖 Wallet Connection docs.

Configuration

Everything goes through the config prop of WidgetConfigProvider. Other props: theme, localisation, rpcs, balanceViaRpc. These are the options most integrations use:

Option Type Purpose
apiKey string Required. Your key from Widget Studio
appFees { recipient, fee }[] Extra fees in basis points, sent to a NEAR Intents account
allowedTokensList string[] Only allow these tokens (asset IDs or symbols) on both sides
allowedSourceTokensList / allowedTargetTokensList string[] Same, for one side only
allowedChainsList Chains[] Only allow these chains, e.g. ['eth', 'base', 'sol']
defaultSourceToken / defaultTargetToken token or null Preselected tokens
slippageTolerance number In bps: 100 = 1%
sendAddress string Fixed recipient (defaults to the sender's address)
confidentialMode 'public' \| 'confidential' \| 'user-choice' Confidential swaps
allowSwapWithExternalWallet boolean Adds a QR-code deposit option for any chain
alchemyApiKey string More reliable balances and Solana RPC (recommended in production)
tonCenterApiKey string TON balances
fetchQuote fn Proxy quotes through your own backend
<WidgetConfigProvider
  config={{
    apiKey: 'YOUR_STUDIO_API_KEY',
    allowedChainsList: ['eth', 'base', 'arb', 'sol', 'near'],
    allowedTokensList: ['USDC', 'USDT', 'ETH', 'SOL'],
    appFees: [{ recipient: 'your-app.near', fee: 20 }], // 0.2%
    slippageTolerance: 50, // 0.5%
  }}>
  <Widget />
</WidgetConfigProvider>

📖 Full reference (40+ options): Widget Configuration docs. An in-repo copy lives at docs/configuration.md, and the WidgetConfig type is in src/types/config.ts. yarn check-docs keeps the doc and the type in sync.

Family IDs
EVM eth base arb bsc pol op avax gnosis bera monad adi plasma scroll xlayer hood aurora
Non-EVM near sol stellar ton btc sui xrp doge tron zec ltc cardano aleo bch dash starknet hypercore qtc

Source: src/constants/chains.ts.

Widgets and events

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @aurora-is-near/intents-swap-widget

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229