Scan your whole stack
From OX Research Newsroom
Are you using @aurora-is-near/intents-swap-widget?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v7.32.0
@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.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
The publisher’s own README, as collected from the registry.
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.
| 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 is a no-code dashboard for the widget. Use it to:
[!NOTE] The API key is not secret. It is safe to ship in front-end code.
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 |
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.
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.
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.
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.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.