Giter Club home page Giter Club logo

mining-pool-api's Introduction

API Design

Objects

migrated to objects page

Paths

Path /

GET

fetch a table about all paths' status (available or not)

{
    "path1": true, // response of path1
    "path2": false, // response of path2
                 // ...
    "pathN": {}, // response of pathN
}

Path /config

migrated to config page

Path /pool

migrated to pool page

Path /miner

migrated to miner page

Path /payments

TODO

Path "/algorithm"

We are recommend to deploy different algorithm stratum port with different mining pool instance, so it means the frontend page have to deal with multi-api-server circumstance.

  • GET

Get all algorithms

  • POST

POST on '/algorithm' is meaning for being compatible multi-algorithms coins

{
    "name": "scrypt",
    "variant": "ltc-origin",
    "blobType": ""
}

Path "/lucky"

the lucky table

lucky = 1 / effort

More lucky means more benefit when same hashrate

  • GET
{
    "1d": 0.99,
    "7d": 1.01,
    "1m": 1.11
}
  • POST

e.g.

request with body, aiming to fetch luckies between these 14 days.

{
    "start": "1-Jan-2020",
    "end": "10-Jan-2020"
}

pool returns a list

["1.1", "1.11", "0.9", "0.98", "0.7", "1.5", "1.11", "0.9", "0.98", "1"]

Path "/effort"

the effort table

effort = 1 / lucky

More lucky means more benefit when same hashrate

  • GET
{
    "1d": 1.01,
    "7d": 0.99,
    "1m": 0.91
}
  • POST

e.g.

request with body, aiming to fetch efforts between these 14 days.

{
    "start": "1-Jan-2020",
    "end": "10-Jan-2020"
}

pool returns a list

["1.1", "1.11", "0.9", "0.98", "0.7", "1.5", "1.11", "0.9", "0.98", "1"]

mining-pool-api's People

Contributors

c0mm4nd avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.