@particle-network/iframe-wallet
TypeScript icon, indicating that this package has built-in type declarations

1.3.3 • Public • Published

Particle iframe wallet

Only support used in iframe.

Installation

Install Auth Core and its peer dependencies.

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

Quick start

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

Package Sidebar

Install

npm i @particle-network/iframe-wallet

Weekly Downloads

51

Version

1.3.3

License

Apache-2.0

Unpacked Size

52.4 kB

Total Files

11

Last publish

Collaborators

  • pantaovay
  • particle-web3