blockchain-driver
a cycle.js driver for the bitcoin blockchain
Last updated 3 years ago by joemphilips .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install blockchain-driver 
SYNC missed versions from official npm registry.

blockchain-driver

Cycle.js driver for following blockchain clients

Examples

Example: bitcoind driver

import { makeTrustedBitcoindDriver } from 'blockchain-driver'
import { run } from '@cycle/run'

const blockchainDriver = makeTrustedBitcoindDriver({username: "foo", password: "bar", port: 18332})

run(main, {Blockchain: blockchainDriver})

Example: bcoin driver

import {makeTrustedBcoinNodeDriver, makeTrustedBcoinWalletDriver} from 'blockchain-driver
import { run } from '@cycle/run

const blockchainDriver = makeTrustedBcoinNodeDriver({apiKey: "my-secret-api-key", port: 18556, host: "localhost"})
const walletDriver = makeTrustedBcoinWalletDriver({/* same option with the above */})

run(main, {Blockchain: blockchainDriver, Wallet: walletDriver})

contributing

To run integration test, you must first run docker-compose up and yarn integration

bws test suite creates new wallet (and puts its pubkey onto the server) each time it runs. But since a bws has a cap for its wallet number able to create from same ip, you may have to re-run docker by docker-compose down && docker-compose up

Current Tags

  • 0.0.5                                ...           latest (3 years ago)

2 Versions

  • 0.0.5                                ...           3 years ago
  • 0.0.5-0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (14)
Dev Dependencies (19)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |