Skip to content

ETHSF-CAL/WEB-v1

Repository files navigation

Host Bitcoin private net

bitcoind -txindex -regtest -reindex -rpcpassword=local321 -rpcuser=bitcoin -rpcport=18332

Interact with the Bitcoin private net via console

bitcoin-cli -rpcpassword=local321 -rpcuser=bitcoin -rpcport=18332 <function_name> <function_param>

Generate a Bitcoin address

bitcoin-cli -rpcpassword=local321 -rpcuser=bitcoin -rpcport=18332 getrawchangeaddress "legacy"

get help

bitcoin-cli -rpcpassword=local321 -rpcuser=bitcoin -rpcport=18332 help

generate 100 blocks

bitcoin-cli -rpcpassword=local321 -rpcuser=bitcoin -rpcport=18332 generate 100

list unspent transaction output from block 0 to 9999999

bitcoin-cli -rpcpassword=local321 -rpcuser=bitcoin -rpcport=18332 listunspent 0 9999999 '["mto2aQFody9b6W1evi2zxAs4wkN4Y68jZG"]'

send 1 BTC to address

bitcoin-cli -rpcpassword=local321 -rpcuser=bitcoin -rpcport=18332 sendtoaddress mto2aQFody9b6W1evi2zxAs4wkN4Y68jZG 1

Chain Abstraction Layer

ChainAbstractionLayer Standard Code Style MIT License ChainAbstractionLayer

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

Query different blockchains with 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>

Community

Liquality Gitter

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

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published