
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@web3-onboard/particle-network
Advanced tools
Particle Network SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnost
npm i @web3-onboard/core @web3-onboard/particle-network
See the Particle Network Docs for the extensive list of options.
import Onboard from '@web3-onboard/core'
import particleModule from '@web3-onboard/particle-network'
const particle = particleModule({
projectId: 'YOUR PROJECT ID',
clientKey: 'YOUR CLIENT KEY',
appId: 'YOUR APP ID'
// Can also add wallet object + preferredAuthType for further customization
})
const onboard = Onboard({
// ... other Onboard options
wallets: [
particle
//... other wallets
]
})
const connectedWallets = await onboard.connectWallet()
console.log(connectedWallets)
/**
* Enumerates the supported authentication types.
*/
type AuthTypes = 'email' | 'phone' | 'google' | 'apple' | 'twitter' | 'facebook' | 'microsoft' | 'linkedin' | 'github' | 'twitch' | 'discord';
/**
* Interface that describes the preferred authentication type.
* @property {AuthTypes} type - The preferred type of authentication.
* @property {boolean} setAsDisplay - Indicates whether the type should be displayed within the UI.
*/
interface PreferredAuthType {
type: AuthTypes;
setAsDisplay: boolean;
}
/**
* Options for initializing the Particle Auth module.
* @property {string} projectId - Particle Network project ID.
* @property {string} clientKey - Particle Network client key.
* @property {string} appId - Particle Network application ID.
* @property {string} [chainName] - (Optional) Specifies the name of the blockchain. Handled automatically if left blank.
* @property {number} [chainId] - (Optional) Specifies the blockchain's numeric ID. Handled automatically if left blank.
* @property {object} [wallet] - (Optional) Configuration for the wallet.
* @property {AuthTypes | PreferredAuthType} [preferredAuthType] - (Optional) Specifies the preferred type of authentication.
*/
interface ParticleAuthModuleOptions {
projectId: string;
clientKey: string;
appId: string;
chainName?: string;
chainId?: number;
wallet?: object;
preferredAuthType?: AuthTypes | PreferredAuthType;
}
FAQs
Particle Network SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnost
The npm package @web3-onboard/particle-network receives a total of 44 weekly downloads. As such, @web3-onboard/particle-network popularity was classified as not popular.
We found that @web3-onboard/particle-network demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.