For the complete documentation index, see llms.txt. This page is also available as Markdown.

Wallet integrations

@aurora-is-near/intents-connect-wallet: wallet connection and deposit transfers for EVM, Solana, NEAR and Stellar.

@aurora-is-near/intents-connect-wallet gives the TypeScript SDK two things:

  • Connect: a wallet modal and connectors that produce a WalletConnector (address, signing standard, providers).

  • Transfer: makeTransfer per chain. It sends the user's deposit to the execution's deposit address.

Every chain SDK is an optional peer dependency behind its own subpath, so an EVM-only app never installs Solana or Stellar code.

Subpaths

Subpath
Gives you
Install alongside

/evm

evm transfer plugin

viem

/solana

sol transfer plugin, Solana step helpers

@solana/web3.js @solana/spl-token

/stellar

stellar transfer plugin, decodePublicKey

@stellar/stellar-sdk

/near

near transfer plugin

none (uses fetch)

/connect

WalletSelectorModal, useWalletSelector, option presets

react @headlessui/react

/connect/appkit

EVM + Solana connectors (Reown AppKit)

react viem @reown/appkit @reown/appkit-adapter-ethers @reown/appkit-adapter-solana @solana/wallet-adapter-phantom @solana/wallet-adapter-solflare @solana/web3.js @solana/spl-token

/connect/near

NEAR connector (HOT, Meteor, MyNearWallet…)

react @hot-labs/near-connect

/connect/stellar

Stellar connector (Freighter, xBull)

react @creit.tech/stellar-wallets-kit @stellar/stellar-sdk

Always install @aurora-is-near/intents-connect and @aurora-is-near/intents-connect-wallet.

How the runner finds a transfer

A transfer is only needed when depositViaWallet: true. With false, the user deposits to the shown address from any wallet or exchange.

Quick path: EVM + Solana

useIntentsConnectWallet() returns a WalletConnector with the transfer already wired in. No plugins needed. This is what the demo uses.

AppKitProvider prop

Default

projectId

Aurora's shared Reown id. Register your own for production

themeMode

'dark' / 'light'

rpcOverrides

publicnode RPCs per EVM chain id

EVM networks: Ethereum, Arbitrum, Base, BSC, Polygon, Optimism, Avalanche, Gnosis, Berachain, Monad, Plasma, Scroll, X Layer, ADI, Aurora, plus Solana.

Multi-chain path: EVM, Solana, NEAR, Stellar

Combine connectors with useWalletSelector. Only one wallet is connected at a time. These connectors don't carry a transfer, so add plugins.

The toWalletConnector(selector) adapter is in the package README. Only pass the options whose connector you installed.

Transfer plugins

Use these when you connect wallets yourself. With a single chain family, pluginOptions can be flat. With several, namespace them by family as shown above.

EVM

  • Switches the chain, or adds it (error 4902 → wallet_addEthereumChain).

  • Sends native value or an ERC-20 transfer.

  • On Aurora it uses withdrawToNear.

Solana: the key is sol

  • Sends SOL, or an SPL token with transferChecked.

  • Creates the recipient's token account if it's missing.

  • Default RPC is publicnode. Pass rpcUrl or connection for production.

NEAR

  • Sends NEAR, or a NEP-141 ft_transfer.

  • Adds a storage_deposit first when needed.

  • nearWallet needs signAndSendTransactions, e.g. useNearConnector().wallet.

Stellar

  • Sends XLM, USDC or CODE:ISSUER assets, mainnet only.

  • The deposit memo is required (the runner passes it). A deposit without a memo is lost.

Solana step helpers

For Solana recipes. They make no network calls and don't sign anything.

Next

Last updated