Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developers.particle.network/llms.txt

Use this file to discover all available pages before exploring further.

Notice: Universal Accounts are upgrading to V2. This will require a change in account system for your app.We’ve begun the migration and need your users to withdraw all funds from the old account. The next version will be deployed shortly after and you can resume operations.Withdrawals will be available past this date, but you will need to migrate your users to the new account system.Assets can be withdrawn to any account the user controls, but only via the createTransferTransaction method.This does not apply to 7702-based Universal Accounts.
The Universal Accounts SDK provides chain abstraction for your app by integrating Universal Accounts. These offer your users a single account, balance, and interaction point across EVM chains and Solana. Our SDK integrates with existing connection flows with minimal setup.

Learn More About Universal Accounts

What are Universal Accounts, how do they work, and what problems do they solve?

Installation

Once your app is set up, install the Universal Accounts SDK:
The SDK depends on ethers.js internally, but you are not required to use it directly. You can use any provider or signer that fits your setup.
yarn add @particle-network/universal-account-sdk ethers

Account Modes

Universal Accounts can operate in two modes, depending on your wallet setup and execution environment:

7702 Mode (Default)

Within this mode:
  • Your user’s existing EOA is upgraded to act directly as a Universal Account.
  • The EOA address and Universal Account address are the same.
  • Assets already held at the user’s EOA are immediately usable on their Universal Account—without transferring assets.
  • No smart account deployments needed.
This mode provides the lowest friction and is recommended for most applications.

Smart Account Mode

Within this mode:
  • A separate smart account is attached to your user’s EOA.
  • The smart account has its own address, separate from the EOA.
  • Users must transfer assets to the smart account before using it.
This mode exists primarily for compatibility with JSON-RPC wallets.

Mode Comparison

ModeAccount AddressAsset Transfer RequiredJSON-RPC Support
7702 (default)Same as EOANoNo
Smart AccountSeparateYesYes

Integration flow

1

Connect a user's account

A user logs in by connecting a wallet or via a social login.
2

Understand account modes

Universal Accounts support two execution modes. Choosing the right one determines how the user’s account behaves.
3

Initialize Universal Accounts

Once connected, pass the user’s EOA address to the SDK and configure your project details.
4

Use the UA instance

Use the returned Universal Account instance to fetch data and send transactions across chains.When sending a transaction, the SDK creates a UserOperation and returns a rootHash.
This hash must be signed by the connected EOA, then passed back into sendTransaction() to broadcast.
Under the hood, all routing, bridging, and gas abstraction are handled by Particle Network’s infrastructure.

Reference

Setup

Initialization & Configuration

Configure project credentials, account mode, and tradeConfig.

Addresses

Retrieve the owner EOA, EVM UA, and Solana UA addresses.

Primary Assets & Unified Balance

Fetch the unified balance and per-chain asset breakdowns.

EIP-7702 Compatible Wallets

Demos and integration notes for Dynamic, Magic, and Privy.

Transactions

Transfer

createTransferTransaction() — send tokens cross-chain.

Custom Payable

createUniversalTransaction() — call any contract.

Buy

createBuyTransaction() — buy a token with USD value.

Sell

createSellTransaction() — sell a token into a primary asset.

Conversion

createConvertTransaction() — convert between primary assets.

Solana

Send transactions on Solana from any chain’s funds.

Transaction Preview

Inspect fees and token movements before signing.

sendTransaction() Response

Full breakdown of the TransactionResult object.

History & Integration

Transaction History

Fetch a user’s past transactions and details.

Particle Connect

Sign UA transactions with a wallet from Particle Connect.

Backend / Server-side

Use Universal Accounts in Node.js with a private key.

UniversalX Registration

Register a Universal Account on UniversalX.

Next steps

Quickstart

Build your first Universal Account integration in 5 minutes.

FAQ

Common questions about the SDK.