feat: add @account-kit/universal-account package with Particle Network integration #2277
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds Universal Account integration for Account Kit, enabling chain abstraction with Particle Network. This allows users to have a single account, balance, and interaction point across all supported chains (EVM + Solana).
The Universal Account is automatically available via Alchemy's AccountKit. The AccountKit config and usage are unchanged.
Features
Changes
New Package:
@account-kit/universal-accountUniversalAccountProvide(/aa-sdk/account-kit/universal-account/src/provider.tsx:81:0-198:1) - React context provideruseUniversalAccount(/aa-sdk/account-kit/universal-account/src/provider.tsx:216:0-263:1) - Hook to initialize and manage Universal AccountuseUnifiedBalance(/aa-sdk/account-kit/universal-account/src/provider.tsx:265:0-342:1) - Hook to fetch unified balance across chainsuseSendTransaction(/aa-sdk/account-kit/universal-account/src/provider.tsx:352:0-551:1) - Hook for cross-chain transactions (transfer, buy, sell, convert)createUniversalAccountClient(/aa-sdk/account-kit/universal-account/src/client.ts:408:0-455:1) - Low-level client for non-React usageDocumentation
Tests
Example
examples/next-example/(/aa-sdk/account-kit/universal-account/examples/next-example:0:0-0:0)Pull Request Checklist
yarn test)sitefolder, and guidelines for updating/adding docs can be found in the contribution guide)feat!: breaking change)yarn lint:check) and fix any issues? (yarn lint:write)PR-Codex overview
This PR introduces the
@account-kit/universal-accountpackage, enabling integration with Particle Network for chain abstraction. It includes configuration files, components, and demo examples for a seamless user experience across multiple blockchain networks.Detailed summary
favicon.ico, SVG icons, and configuration files for the demo app.postcss.config.mjsandnext.config.tsfor Tailwind CSS and Next.js setup.vitest.config.tsfor testing configurations.README.mdfor the demo app, detailing setup and usage.UniversalAccountClientto ensure functionality and correct parameter passing.