2021-07-17 19:14:11 -07:00
2019-02-07 17:26:37 -08:00
2021-04-09 06:57:58 -07:00
2019-05-20 20:45:01 -07:00
2021-07-18 08:09:27 -07:00
2021-02-04 15:44:12 -08:00
2016-02-11 14:28:00 -05:00
2021-04-09 15:51:18 +02:00
2021-07-13 10:00:39 -07:00
2021-07-17 09:12:37 -07:00
2021-07-13 16:55:26 -07:00

ipfs-bch-wallet-service

js-standard-style semantic-release

This is a censorship-resistant, IPFS-based microservice that provides access for wallets to access the Bitcoin Cash (BCH) blockchain. It leverages bch-js.

About This Repository

This repository is forked from the ipfs-service-provider repository. That code has been customized to provide BCH blockchain access for wallets. This server-side node.js app provides both REST API over HTTP and JSON RPC over IPFS endpoints for wallets to access the blockchain through.

As part of the end-to-end testing, a virtual client can be started that will interrogate every endpoint provided by this API server. This client can be forked by developers to write their own apps that use this IPFS-based service.

Roadmap

This repository is one step in a longer path. Here are the major milestones of this path:

  • Add wallet-based calls to ipfs-bch-wallet-service (this repository).
  • Create a miniature version of bch-js that makes calls over JSON RPC (bch-js-ipfs).
  • Given a variable, minimal-slp-wallet could call bch-js or bch-js-ipfs for network calls.
  • Fork slp-cli-wallet and add daemon feature to spin up IPFS node and work with bch-js-ipfs.

Requirements

  • node ^14.17.0
  • npm ^7.13.0

Installation

git clone https://github.com/Permissionless-Software-Foundation/ipfs-bch-wallet-service
cd ipfs-bch-wallet-service
npm install
npm start

Structure

The file layout of this repository differs from the koa-api-boilerplate. Instead, it follows the file layout of Clean Architecture.

Usage

  • npm start Start server on live mode
  • npm run docs Generate API documentation
  • npm test Run mocha tests
  • docker-compose build Build a 'production' Docker container
  • docker-compose up Run the docker container

Documentation

API documentation is written inline and generated by apidoc.

Visit http://localhost:5000/docs/ to view docs

Dependencies

IPFS

Snapshots pinned to IPFS will be listed here.

License

MIT

Languages
JavaScript 97.4%
Shell 1.3%
HTML 0.8%
Dockerfile 0.5%