lightning-hackday-slashtags-pay

1.4.0 • Public • Published

lightning-hackday-slashtags-pay

Install

npm i lightning-hackday-slashtags-pay

Usage

Server side

import { slashtagsPayServer } from './index.js';

const lnNodeResponse = (request = { amount: 100, description: 'foo' }) => {
  console.log('got request', request);
  return 'this is an ln invoice for ' + JSON.stringify(request);
};

const slashtag = slahtagsPayServer(lnNodeResponse);

Client side

import { slashtagsPayClient } from './index.js';
// Pass the slashtag to the client side somehow
const response = await slashtagsPayClient(slashtag);

Readme

Keywords

none

Package Sidebar

Install

npm i lightning-hackday-slashtags-pay

Weekly Downloads

2

Version

1.4.0

License

none

Unpacked Size

6.33 kB

Total Files

6

Last publish

Collaborators

  • nzh