Paid API based on Coinhive
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api-sample
client-sample
gateway
LICENSE
README.md
cryp-paid-api.gif

README.md

Paid API by mining Cryptocurrency

This repository contains three programs to illustrate a paid API architecture based on Coinhive.

visit demo

[demo]

  • backend sample -> api-sample
    • This is just an ordinary API... No need to consider mining or payment.
    • go, GAE
  • gateway sample -> gateway
    • A hard worker, which communicates with Coinhive, processes a payment, and calls the backend API.
    • go, GAE
  • client sample -> client-sample
    • This program calls an endpoint on the gateway, and displays what is happening.
    • js, static site (i.e. Firebase Hosting, Github Pages, S3, and so on)