开发者社区> 镜像站> NPM> @liquality/chainabstractionlayer
@liquality/chainabstractionlayer
Last updated 2 years ago by harshjv .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @liquality/chainabstractionlayer 
SYNC missed versions from official npm registry.

Chain Abstraction Layer

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

:warning: This project is under heavy development. Expect bugs & breaking changes.

:pencil: 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'

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

Current Tags

  • 0.1.23-next.2                                ...           latest (2 years ago)
  • 0.1.23-next.12                                ...           next (2 years ago)

47 Versions

  • 0.1.23-next.12                                ...           2 years ago
  • 0.1.23-next.11                                ...           2 years ago
  • 0.1.23-next.9                                ...           2 years ago
  • 0.1.23-next.8                                ...           2 years ago
  • 0.1.23-next.6                                ...           2 years ago
  • 0.1.23-next.5                                ...           2 years ago
  • 0.1.23-next.4                                ...           2 years ago
  • 0.1.23-next.2                                ...           2 years ago
  • 0.1.23-next.1                                ...           2 years ago
  • 0.1.22                                ...           2 years ago
  • 0.1.22-next.5                                ...           2 years ago
  • 0.1.22-next.4                                ...           2 years ago
  • 0.1.22-next.3                                ...           2 years ago
  • 0.1.22-next.2                                ...           2 years ago
  • 0.1.22-next.1                                ...           2 years ago
  • 0.1.21                                ...           2 years ago
  • 0.1.21-next.11                                ...           2 years ago
  • 0.1.21-next.10                                ...           2 years ago
  • 0.1.21-next.9                                ...           2 years ago
  • 0.1.21-next.8                                ...           2 years ago
  • 0.1.21-next.7                                ...           2 years ago
  • 0.1.21-next.6                                ...           2 years ago
  • 0.1.21-next.4                                ...           2 years ago
  • 0.1.21-next.3                                ...           2 years ago
  • 0.1.21-next.2                                ...           2 years ago
  • 0.1.21-next.1                                ...           2 years ago
  • 0.1.20                                ...           2 years ago
  • 0.1.19                                ...           2 years ago
  • 0.1.18                                ...           2 years ago
  • 0.1.17                                ...           2 years ago
  • 0.1.16                                ...           2 years ago
  • 0.1.15                                ...           2 years ago
  • 0.1.14                                ...           2 years ago
  • 0.1.13                                ...           2 years ago
  • 0.1.12                                ...           2 years ago
  • 0.1.11                                ...           2 years ago
  • 0.1.10                                ...           2 years ago
  • 0.1.9                                ...           2 years ago
  • 0.1.8                                ...           2 years ago
  • 0.1.7                                ...           2 years ago
  • 0.1.6                                ...           2 years ago
  • 0.1.5                                ...           2 years ago
  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 47
Dependencies (21)
Dev Dependencies (30)
Dependents (0)
None