0.1.0 • Published 5 years ago

bch-wallet-bridge v0.1.0

Weekly downloads
6
License
-
Repository
github
Last release
5 years ago

web3bch.js - Bitcoin Cash JavaScript API

Build Status codecov

Installation

yarn add web3bch

Usage

import Web3bch from "web3bch"
const injected = window.web3bch
if (!injected || !injected.currentProvider) {
  console.log("Web3bch provider doesn't injected!")
  return
}
const web3bch = new Web3bch(provider)

What is DApp ID?

DApp ID is a unique identifiers for a single DApp, and it's a txid of Bitcoin transaction. Each DApp writes its protocol specification in the tranasction's OP_RETURN output.

It is defined in BDID-2.

Documentation

Documentation can be found at GitHub Pages.

Building

Requirements

  • Node.js
  • npm
  • yarn

Build (tsc)

  1. $ yarn
  2. $ yarn build