Wondering what’s next for npm?Check out our public roadmap! »

atomicloans-chainabstractionlayer

0.1.23-next.12 • Public • Published

Chain Abstraction Layer

Build Status Coverage Status Standard Code Style MIT License ChainAbstractionLayer Gitter Telegram Greenkeeper badge

⚠️ This project is under heavy development. Expect bugs & breaking changes.

📝 Introductory Blog Post: The Missing Tool to Cross-Chain Development

Query different blockchains with account management using a single and simple interface.

Installation

npm install @liquality/chainabstractionlayer

Error: Cannot find module 'babel-runtime/core-js/get-iterator'

Issues to track: LedgerHQ/ledgerjs/issues/211, LedgerHQ/ledgerjs/issues/218

npm install babel-runtime

Usage

import { Client, providers } from '@liquality/chainabstractionlayer'
 
Client.debug('liquality*') // to enable debugging for all liquality modules using "debug" package
// or
// Client.debug('*') to enable debugging for everything
 
const { BitcoinRPCProvider } = providers.bitcoin
 
const bitcoin = new Client()
bitcoin.addProvider(new BitcoinRPCProvider('http://localhost:8080', 'bitcoin', 'local321'))
 
bitcoin
  .generateBlock(1) // returns Promise
  .then(console.log) // Array<BlockHash>

Try ChainAbstractionLayer in Browser

Chain Wallet Provider
Ethereum Ledger Source & Demo
MetaMask Source & Demo
Bitcoin Ledger Source & Demo

Documentation

The documentation is being generated by esdoc. Github Page hosted documentation is available at liquality.github.io/chainabstractionlayer

If you want to build documentation locally;

npm run build:docs

License

MIT

Install

npm i atomicloans-chainabstractionlayer

DownloadsWeekly Downloads

18

Version

0.1.23-next.12

License

MIT

Unpacked Size

4.75 MB

Total Files

43

Last publish

Collaborators

  • avatar