Socket
Socket
Sign inDemoInstall

@emurgo/js-chain-libs

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emurgo/js-chain-libs

Jörmungandr library, wallet and stake pool management.


Version published
Weekly downloads
4
decreased by-60%
Maintainers
2
Weekly downloads
 
Created
Source

js chain libs

WebAssembly library with Javascript bindings to the new chain libraries.

This library can be used to do things like: create addresses, transactions and certificates, an encode them to be able to post to a node. It can also be used to parse the data fetched from a node (such as blocks). A possible use-case is for building explorers and wallets in javascript, either in the browser or in nodejs, making possible to build engaging blockchain apps with good user interfaces with the same low level primitives already used in the rust node.

Installing from npmjs

npm i --save js-chain-libs

Building from source

Requirements

  • Install rustup
  • Run rustup install stable
  • Install wasm-pack

Make sure to update the submodule:

git submodule init
git submodule update

Build with:

wasm-pack build

Creating an npm module:

wasm-pack pack

Examples

Check the wallet example to see how to use this bindings in electron

Check the example faucet to see how to use this bindings in node.

Testing

Run the tests with

wasm-pack test --headless --chrome

Bundle javascript tests to run in browser

npm run serve

Go to http://127.0.0.1:8080/ to see the results.

Documentation

Run npm run doc on this repository to generate the jsdoc documentation from the build,the actual files are generated in the docs directory.

FAQs

Package last updated on 12 Feb 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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc