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

2.0.6 • 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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.65latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.65
2.0.50
2.0.30
2.0.20
2.0.00
2.0.0-alpha.10
2.0.0-alpha.00
1.3.30
1.3.20
1.3.10
1.0.00
1.0.0-alpha.30
1.0.0-alpha.20
1.0.0-alpha.10
1.0.0-alpha.00

Package Sidebar

Install

npm i @particle-network/iframe-wallet

Weekly Downloads

5

Version

2.0.6

License

Apache-2.0

Unpacked Size

131 kB

Total Files

15

Last publish

Collaborators

  • pantaovay
  • particle-web3