Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Latest commit

 

History

History
52 lines (40 loc) · 1.2 KB

index.md

File metadata and controls

52 lines (40 loc) · 1.2 KB

Installation

Install library as npm module:

npm install trezor-connect

or

yarn add trezor-connect

Include library as inline script:

<script src="https://connect.trezor.io/7/trezor-connect.js"></script>

Initialization

ES6

import TrezorConnect from 'trezor-connect';

CommonJS

var TrezorConnect = require('trezor-connect').default;

Inline

var TrezorConnect = window.TrezorConnect;

Trezor Connect Manifest

Starting with Trezor Connect 7, we have implemented a new feature — Trezor Connect Manifest — which requires that you as a Trezor Connect integrator, to share your e-mail and application url with us. This provides us with the ability to reach you in case of any required maintenance. This subscription is mandatory. Trezor Connect raises an error that reads "Manifest not set. Read more at https://github.com/trezor/connect/blob/develop/docs/index.md" if manifest is not provided.

TrezorConnect.manifest({
    email: '[email protected]',
    appUrl: 'http://your.application.com'
})

API methods

Handling events