Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@galoymoney/client

Package Overview
Dependencies
Maintainers
5
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@galoymoney/client

JavaScript client library for the Galoy stack. This is used in front-end applications like the web and mobile wallets.

  • 0.0.22
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
decreased by-86.58%
Maintainers
5
Weekly downloads
 
Created
Source

Galoy Client

JavaScript client library for the Galoy stack. This is used in front-end applications like the web and mobile wallets.

Installation

Install the package with:

yarn add @galoymoney/client

Usage

parsePaymentDestination

import { parsePaymentDestination } from "@galoymoney/client"

const { valid, paymentType, amount } = parsePaymentDestination({
  destination: "username or invoice or bitcoin address",
  network: "mainnet", // or testnet or regtest
  pubKey: "nodePubKey",
})

Test

Test with Jest framework:

yarn test

Build

Build production (distribution) files in dist folder:

yarn build

Local development

Run:

yarn link

and in your test project run:

yarn link @galoymoney/client

If you want to remove the symlink, run:

# in your test project
yarn unlink @galoymoney/client

# in galoymoney/client folder
yarn unlink

FAQs

Package last updated on 12 Feb 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc