Giter Club home page Giter Club logo

apiminerpushdoc's Introduction

ApiMinerPushDoc

This document is used by the vendor of Arkreen API Miner.

Prerequisites

If you want to become to a vender of Arkreen API Miner, you need to satisfy the following requirements:

  • You must be a business user, individual users are not supported.
  • You must have direct business cooperation with Arkreen Network.
  • You must have a cloud services/devices that can collect and report PoGG data to Arkreen Network 24*7*365 manner.

API Miner Process Flow

  • Generate API Miner(address and private key), the API miner can be generated by Ethereum compatible wallets
    • Arkreen API Miner must be registered before they report PoGG data to Arkreen Network.
    • Arkreen only accepts business partners to register for API Miner.
  • Contact Arkreen Network to register the generated API miner and pay the registration fee
    • The vender of API Miner must pay the fee for API Miner registration.
    • The miner address is the required parameter to register, private key is needless.
  • Using Arkreen Console to onboarding API miner
    • User needs to prepare the required properties for onboarding API Miner, the required properties include:
      • The capacity of your power plant, for example: 5000, the unit is Wh(Watt Hour)
      • The location of your power plant, for example: Los Angeles USA
    • User can onboard API Miner by Arkreen Console
      • Using the desktop browser to access Arkreen Console is preferred
      • Mobile browser will support soonly
      • The Arkreen Console for TEST ONLY will coming soon...
  • Using the Arkreen JSON RPC API to report PoGG data to Arkreen Network periodically

JSON RPC APIs for API Miner

API Description
tx_reportMinerPoGG JSON RPC API that be used to report PoGG data to Arkreen Network
net_getMinerByAddress JSON RPC API that be used to get miner information

Sample Code

This sample code will send the randomly generated PoGG report data to Arkreen Network.

The running environment of the sample is Nodejs, please goto Nodejs Official Website to install.

Prepare the environment

git clone [email protected]:arkreen/ApiMinerPushDoc.git
cd ApiMinerPushDoc/sample
npm install

Config the API Miner

  • Using any text editor to open miner.js file
  • Change the minerAddress variable to your miner address
  • Change the minerPrivateKey variable to your miner private key

Run the API Miner

node app.js

When the application is running firstly, the miner has not made any PoGG report, the application will report the first PoGG data with 1 green generation sample(real time power=0W, total energy generated=0Wh), after that, the application will report PoGG data to Arkreen Network every hour with 12 green generation samples.

FAQ

  • How to check the PoGG report data that has been sent to Arkreen Network?
    • Open the Arkreen Console Miners web page
    • Enter the target miner address in search box top of window and search

apiminerpushdoc's People

Contributors

zkwasm 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.