2.0.6 • Published 8 months ago
@particle-network/wallet v2.0.6
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';
// init wallet component, replace 'xxx' with project config.
walletEntryPlugin.init(
{
projectId: 'xxx',
clientKey: 'xxx',
appId: 'xxx',
},
walletOptions // optional: wallet custom configs
);
// set wallet provider
walletEntryPlugin.setWalletCore({
ethereum: provider, // optional: evm eip1193 provider
solana: wallet, // optional: solana wallet
});
// show wallet entry
walletEntryPlugin.walletEntryCreate();
// destroy wallet entry
walletEntryPlugin.walletEntryDestroy();
// open wallet
walletEntryPlugin.openWallet(params);
Learn More
2.0.5
8 months ago
2.0.6
8 months ago
2.0.3
10 months ago
2.0.2
10 months ago
2.0.0-alpha.0
10 months ago
2.0.0-alpha.1
10 months ago
2.0.0-alpha.2
10 months ago
2.0.1
10 months ago
2.0.0
10 months ago
1.4.6
1 year ago
1.4.5-alpha.0
1 year ago
1.4.5
1 year ago
1.4.4
1 year ago
1.4.3
1 year ago
1.4.2
1 year ago
1.4.1
1 year ago
1.4.0
1 year ago
1.3.4
1 year ago
1.3.3
1 year ago
1.3.2
2 years ago
1.3.1
2 years ago
1.0.0
2 years ago
1.0.0-alpha.7
2 years ago
1.0.0-alpha.6
2 years ago
1.0.0-alpha.5
2 years ago