bch-wallet-bridge
v0.1.0
Published
[![Build Status](https://travis-ci.org/web3bch/web3bch.js.svg?branch=master)](https://travis-ci.org/web3bch/web3bch.js) [![codecov](https://codecov.io/gh/web3bch/web3bch.js/branch/master/graph/badge.svg)](https://codecov.io/gh/web3bch/web3bch.js)
Downloads
5
Readme
web3bch.js - Bitcoin Cash JavaScript API
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)
$ yarn
$ yarn build