open-index/open-npm huggingface dataset:
npm package: @particle-network/iframe-wallet
Description: Only support used in iframe.
Author: Particle Network
Latest version: 3.0.0-alpha.2

# Particle iframe wallet

Only support used in iframe.

## Installation

Install Auth Core and its peer dependencies.

```shell
npm install @particle-network/iframe-wallet
# or
yarn add @particle-network/iframe-wallet
```

## Quick start

```ts
import { iframeWallet, inIframe } from '@particle-network/iframe-wallet';

if (inIframe()) {
  iframeWallet.init({
    iframeId: 'xxxx',
    evm: true,
    solana: true,
  });
}

// evm eip1193 provider
const provider = iframeWallet.ethereum;

// solana wallet
const wallet = iframeWallet.solana;

// particle user info
const userInfo = await iframeWallet.getUserInfo();

// open account and security
await iframeWallet.openAccountAndSecurity();
```

## Learn More

- [Website](https://particle.network)
- [Documentation](https://docs.particle.network/)
- [Live Demo](https://core-demo.particle.network/)