bch-wallet-bridge
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i bch-wallet-bridge

Weekly Downloads

0

Version

0.1.0

License

none

Unpacked Size

239 kB

Total Files

31

Last publish

Collaborators

  • yuiki