ark-pool-server-js

A wrapper for working with the ark pool server API

Usage no npm install needed!

<script type="module">
  import arkPoolServerJs from 'https://cdn.skypack.dev/ark-pool-server-js';
</script>

README

ARK-Go Pool Server API Wrapper

Makes working with your Delegate Pool Server easier in JavaScript.

Install

npm install ark-pool-server-js --save
yarn add ark-pool-server-js

Configure

either set an Environment variable for ARK_POOL_SERVER_IP or set it on window.arkPoolServerIP

Getting Started

import ArkPoolServer from 'ark-pool-server-js'

Example

  ArkPoolServer.getDelegate().then((res) => {
    console.log(res);
  });

API End Points

  ArkPoolServer.getDelegateConfig()
  ArkPoolServer.getPaymentRuns()
  ArkPoolServer.getPaymentRunDetails(params = {parentId: parentId, address: address})
  [takes an optional params object and has 2 available options `parentId` and `address`]
  ArkPoolServer.getVoters()
  ArkPoolServer.getVotersBlocked()
  ArkPoolServer.getVotersRewards()

Support Our Delegate

Want to support our work? Vote for our ARK Delegate - arkoar.group - https://arkoar.group