Skip to content

The project won the Consensys Sponsorship Prize on the ETHSanFrancisco hackathon. Created by HU Yao-Chieh, Lee Ting Ting, and Kevin Gau.

License

Notifications You must be signed in to change notification settings

tina1998612/BTC-ETH-Cross-Chain-Atomic-Swap

Repository files navigation

Chain Abstraction Layer

JavaScript Style Guide

Query different blockchains with a single and simple interface.

Client

const Client = require('chainabstractionlayer')
const { BitcoinRPCProvider } = Client.providers.bitcoin

const bitcoin = new Client(new BitcoinRPCProvider('http://localhost:8080', 'bitcoin', 'local321'))

bitcoin
  .generateBlock(1) // returns Promise
  .then(console.log) // Array<BlockHash>

Development

1. Clone the project and link it locally

git clone git@github.com:ConsenSys/chainabstractionlayer.git
cd chainabstractionlayer
npm link

2. Use it in other projects

cd myblockchainproject
npm link chainabstractionlayer

Build documentation

npm run build:docs

About

The project won the Consensys Sponsorship Prize on the ETHSanFrancisco hackathon. Created by HU Yao-Chieh, Lee Ting Ting, and Kevin Gau.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%