0.1.5 • Published 3 months ago

@spritz-finance/widget v0.1.5

Weekly downloads
-
License
ISC
Repository
github
Last release
3 months ago

Spritz Widget

A JavaScript library for defi apps to have their users spend crypto easily with Spritz

Installation

# Using yarn
$ yarn add @spritz-finance/widget

# Using npm
$ npm install @spritz-finance/widget

Example usage

Refer here for the full list of customisation options

import SpritzSDK from '@spritz-finance/widget';

let spritz = new SpritzSDK({
    integrationKey: '<your-integration-key>', // required
    environment: '<environment: STAGING|PRODUCTION>', // required
    provider: window.ethereum.provider // optional, an ethers provider. Will bridge your app's web3 provider into the Spritz app
    height: '800px', // optional
    width: '100%' //optional
});

spritz.init();

// To get all the events
spritz.on(spritz.ALL_EVENTS, (data) => {
  console.log(data);
});
0.1.5

3 months ago

0.1.4

3 months ago

0.1.3

3 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.0.5

11 months ago

0.0.6

11 months ago

0.0.4

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago