magmo-wallet-client
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

magmo-wallet-client

A library for creating and interacting with a Magmo wallet.

Usage

Creating the Wallet iframe

The wallet iframe can be created by calling createWalletIFrame and then embedded anywhere in the page. The wallet handles stying and displaying itself!

const walletClient = require('magmo-wallet-client');
const walletIframe = walletClient.createWalletIFrame('magmo-wallet-00');

Listening for Wallet events

The WalletEventListener can be used to subscribe to WalletEvents.

const walletClient = require('magmo-wallet-client');
const walletListener = new walletClient.WalletEventListener();
walletListener.subscribeAll(yourHandler);

Wallet functions

The wallet exposes various functions to interact with the wallet.

const walletClient = require('magmo-wallet-client');
walletClient.initializeWallet('magmo-wallet-00','my-user-id');

Dependents (1)

Package Sidebar

Install

npm i magmo-wallet-client

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

49.9 kB

Total Files

32

Last publish

Collaborators

  • andrew.gord.stewart
  • lalexgap
  • tomclose