@galoymoney/client
TypeScript icon, indicating that this package has built-in type declarations

0.2.9 • Public • Published

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 signet or regtest
})

Test

Test with Jest framework:

yarn test

Build

Build production (distribution) files in dist folder:

yarn build

Local development

using yarn

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

using yalc

Run:

# in galoymoney/client folder
yalc publish

in your test project run:

yalc add @galoymoney/client

If you want to remove the symlink, run:

# in your test project
yalc remove @galoymoney/client

to update changes, you have to run yalc publish before run:

# in your test project
yalc update

Readme

Keywords

none

Package Sidebar

Install

npm i @galoymoney/client

Weekly Downloads

623

Version

0.2.9

License

MIT

Unpacked Size

63.6 kB

Total Files

46

Last publish

Collaborators

  • galoybot
  • sbgaloy
  • daviroo
  • nbgaloy
  • bodymindarts