New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

zumokit

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zumokit

ZumoKit is a Wallet as a Service SDK

  • 4.3.0-alpha.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
186
increased by148%
Maintainers
1
Weekly downloads
 
Created
Source

ZumoKit Web SDK

npm (tag)

ZumoKit is a state of the art wallet architecture underpinning our flagship product Zumo that provides secure transfer and exchange of fiat and cryptocurrency funds.

Docs

Refer to ZumoKit SDK developer documentation and reference for usage details.

Installation

Standalone

Include the ZumoKit script on each page of your site — it should always be loaded directly from https://js.zumo.money, rather than included in a bundle or hosted yourself.

Additionally, ZumoKit is dependent on decimal.js, which has to be added separately.

<script src="https://js.zumo.money/4.3.0-alpha.1/decimal.js"></script>
<script src="https://js.zumo.money/4.3.0-alpha.1/zumokit.js"></script>

ES6 Module

ZumoKit is distributed through NPM repository and it has a peer dependency on decimal.js, which also has to be installed:

npm install decimal.js@^10.2.0 zumokit

Usage

Entry point to ZumoKit SDK is loadZumoKit function. This function returns a Promise that resolves with a newly created ZumoKit object once ZumoKit SDK has loaded. Behind the scenes, it will load ZumoKit WebAssebly module for you by inserting the zumocore.js script tag. ZumoKit requires browser environment to work as expected and it will not work in in a server environment.

Refer to ZumoKit SDK developer documentation and reference for usage details.

Replace API_KEY, API_ROOT, TX_SERVICE_URL, CARD_SERVICE_URL and NOTIFICATION_SERVICE_URL in the examples below with credentials provided to you by your account manager.

HTML + JS

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>ZumoKit Example</title>
    <script>
      window.addEventListener('load', async (event) => {
        const zumokit = await loadZumoKit(
          API_KEY,
          API_URL,
          TRANSACTION_SERVICE_URL,
          CARD_SERVICE_URL,
          NOTIFICATION_SERVICE_URL,
          EXCHANGE_SERVICE_URL
        );

        console.log(zumokit.version);
      });
    </script>
  </head>

  <body>
    <p>Check console output!</p>
    <script src="https://js.zumo.money/4.3.0-alpha.1/decimal.js"></script>
    <script src="https://js.zumo.money/4.3.0-alpha.1/zumokit.js"></script>
  </body>
</html>

ES6 Module

import { loadZumoKit } from 'zumokit';

const zumokit = await loadZumoKit(
  API_KEY,
  API_URL,
  TRANSACTION_SERVICE_URL,
  CARD_SERVICE_URL,
  NOTIFICATION_SERVICE_URL,
  EXCHANGE_SERVICE_URL
);

console.log(zumoKit.version);

TypeScript support

This package exports TypeScript declarations for ZumoKit type aliases and interfaces via named exports. For example:

import { CurrencyCode, AccountType, Network } from 'zumokit';

Example

The webpack example project demonstrates the expected user flow, including authentication process, wallet creation and transaction submission.

Keywords

FAQs

Package last updated on 08 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc