Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@particle-network/wallet

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@particle-network/wallet

A wallet component that can be easily injected into the developer's website to provide rich custom styles.

  • 2.0.8
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3.6K
decreased by-1.75%
Maintainers
0
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 18 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc