Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trezor/blockchain-link

Package Overview
Dependencies
Maintainers
5
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trezor/blockchain-link

High-level javascript interface for blockchain communication

  • 1.0.11
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
44K
decreased by-16.41%
Maintainers
5
Weekly downloads
 
Created
Source

API for communication with blockchain backends. Every type of a backed is isolated inside own worker file. Currently supported:

  • blockbook
  • ripple-lib

Development:

Compile and run with simple ui for the API methods.

yarn
yarn dev

Build

yarn lint
yarn test
yarn build

Integration

yarn add @trezor/blockchain-link
import BlockchainLink from '@trezor/blockchain-link';

const link = new BlockchainLink({
    name: string;
    worker: string;
    server: string[];
    debug: boolean;
});

try {
    const resp = link.getInfo();
} catch(error) {

}

Workers compilation

Workers are already builded and minified inside @trezor/blockchain-link/build/ directory. However if you want to compile those workers by yourself a few additional packages needs to be added to your project. Those dependencies are listed inside package.json in workersDependencies field.

Then set your project to compile and provide those workers into blockchain-link instance. An webpack configuration example using worker-loader could be found in here

Keywords

FAQs

Package last updated on 10 May 2020

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