Particle Walelt
A wallet component that can be easily injected into the developer's website to provide rich custom styles.
Installation
Install wallet and its peer dependencies.
yarn add @particle-network/wallet@latest
Configure
Init Wallet with Particle project config, you can get the config from Particle Dashboard.
The modal support custom style, refer to Wallet Service.
import { walletEntryPlugin } from '@particle-network/wallet';
walletEntryPlugin.init(
{
projectId: 'xxx',
clientKey: 'xxx',
appId: 'xxx',
},
walletOptions
);
walletEntryPlugin.setWalletCore({
ethereum: provider,
solana: wallet,
});
walletEntryPlugin.walletEntryCreate();
walletEntryPlugin.walletEntryDestroy();
walletEntryPlugin.openWallet(params);
Learn More