Socket
Socket
Sign inDemoInstall

btcpay-greenfield-node-client

Package Overview
Dependencies
13
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    btcpay-greenfield-node-client

## Installation


Version published
Weekly downloads
60
decreased by-50.82%
Maintainers
1
Install size
1.84 MB
Created
Weekly downloads
 

Readme

Source

BTCPay Greenfield Node Client

Installation

yarn add btcpay-greenfield-node-client

or

npm install btcpay-greenfield-node-client

Configuration

Set Base URL

import { OpenAPI } from 'btcpay-greenfield-node-client';

OpenAPI.BASE = 'https://your-btcpayserver-url.com';

Authorization

API Key
import { OpenAPI } from 'btcpay-greenfield-node-client';

OpenAPI.TOKEN = process.env.BTCPAY_API_KEY;
// or as a function
OpenAPI.TOKEN = () => {
  return 'SOME_TOKEN';
};
Username & Password
import { OpenAPI } from 'btcpay-greenfield-node-client';

OpenAPI.USERNAME = process.env.BTCPAY_USERNAME;
OpenAPI.PASSWORD = process.env.BTCPAY_PASSWORD;
// or as function
OpenAPI.USERNAME = () => {
  return 'USERNAME';
};
OpenAPI.PASSWORD = () => {
  return 'PASSWORD';
};

Usage

Development

  1. Run yarn generate
  2. Commit
  3. Run yarn build
  4. Publish to npm

Acknowledgement

This library leverages the work done by @ferdikoomen in openapi-typescript-codegen.

Keywords

FAQs

Last updated on 20 Mar 2021

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