Socket
Socket
Sign inDemoInstall

luxorpool

Package Overview
Dependencies
12
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    luxorpool

Unofficial Luxor Mining Pool API Wrapper


Version published
Weekly downloads
5
increased by25%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Unofficial Luxor Pool JavaScript API Client

Version Try on RunKit

This unofficial Luxor Mining Pool client provides convenient access to the Luxor API from client-side and server-side JavaScript applications.

Installation

npm install luxorpool
# or
yarn add luxorpool

Usage

The package needs to be configured with an API key from your Luxor account:

  1. Log in to Luxor.
  2. Go to Settings > API Keys > Generate new Key.
import { Luxor } from 'luxorpool'

const luxor = new Luxor({
  key: 'YOUR_API_KEY',
  coin: 'BTC',
  units: 'TH'
})

async function example() {
  const subaccounts = await luxor.getSubaccounts()
  const hashrate = await luxor.getPoolHashrate()
  const transactions = await luxor.getTransactionHistory('YOUR_SUBACOUNT')
  // etc.
}

Documentation

This library is a pretty lightweight wrapper around the Luxor Pool API, so Luxor's API documentation is probably helpful. It also includes type definitions, so it should be convenient for TypeScript folks.

Keywords

FAQs

Last updated on 20 Apr 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc