npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

strikeln-node

v0.0.1

Published

Strike SDK Nodejs Lightning Network Bitcoin for Testnet

Downloads

5

Readme

Strike SDK Nodejs Lightning Network Bitcoin for Testnet

Synopsis

This projects helps you to make HTTP requests to the Strike API by ACINQ.

Installation

npm install strikeLN-node
const strikeLN = require('yiimp-node');
const api_key ="your_api_key";
const client = new strikeLN(api_key);

Strike

Strike is an easy to use, stripe®-like API for Lightning.

Let us handle your Lightning payments, and receive aggregated bitcoin transactions every week, day, or hour!

A user-friendly dashboard allows you to monitor your payments in real time.

API Index

The API is available https://strike.acinq.co/#/documentation/api-reference

Methods

chargeid

Response

[ 
  { id: 'ch_7bVXiei4wFoYjTtQhyNeuvMf6EwS1Bd8nuxBwY8cBbgx',
      object: 'charge',
      amount: 4294967,
      currency: 'btc',
      amount_satoshi: 4294967,
      payment_hash: '61fc20ab4a5ad827eed5ab7d672886013f7f3e096051bda124fd5124ba578eb5',
      payment_request: 'lntb42949670n1pdvq2pjpp5v87zp262ttvz0mk44d7kw2yxqylh70sfvpgmmgfyl4gjfwjh366sdp9xgjnyvzhdphkcef9xgcyymr0vd4kzcmrd9hx7cqp2xqnfh0rvxwz7dhuaulmx0x8sfeuagqha9fw2h9avhv0um94etgjr34hm7uxcc2zxufca0dmdx22p8mfhnc5yanaq80ulh60p5zmhy2cq2nzjdm',
      description: '2%20Whole%20Blockaccino',
      paid: false,
      created: 1522542642,
      updated: 1522542642 
  } 
]

Examples Request: /chargeid

param: 
id:Information about idpayement
  client.chargeid(id,function (error, data) {
    if(error) console.log("E!",error)
    console.dir(data);

  });

listhistory

Response

{ 
  id: 'ch_GZij1NsorXxqNVS5UxDkAzfK8rMg48yKLwjHPUm5nriM',
  object: 'charge',
  amount: 4294967,
  currency: 'btc',
  amount_satoshi: 4294967,
  payment_hash: 'e741114aab8a8d82cc0e628bb686dc7ac14a575ff9a638312d834e0e6e4025ca',
  payment_request: 'lntb42949670n1pdvq2zupp5uaq3zj4t32xc9nqwv29mdpku0tq5546llxnrsvfdsd8qumjqyh9qdp9xgjnyvzhdphkcef9xgcyymr0vd4kzcmrd9hx7cqp2hrq2qk3qh580kdxwqzt2cnzq9c92frh4ygs8j0wk8wh2dgnylxv8lt9c9gthljf6lgvqm8d09jlxdcf5k8s7eqqh8ptsuwxeae64u8cp47y9m9',
  description: '2%20Whole%20Blockaccino',
  paid: false,
  created: 1522542684,
  updated: 1522542684 
}

Examples Request: /listhistory

param: 
page : number of page
size: number Information about payement account
let page=0,
    size=1;

client.listhistory(page,size,function (error, data) {
  if(error) console.log("E!",error)
  console.dir(data);

});

charge

Response

{ 
  id: 'ch_GZij1NsorXxqNVS5UxDkAzfK8rMg48yKLwjHPUm5nriM',
  object: 'charge',
  amount: 4294967,
  currency: 'btc',
  amount_satoshi: 4294967,
  payment_hash: 'e741114aab8a8d82cc0e628bb686dc7ac14a575ff9a638312d834e0e6e4025ca',
  payment_request: 'lntb42949670n1pdvq2zupp5uaq3zj4t32xc9nqwv29mdpku0tq5546llxnrsvfdsd8qumjqyh9qdp9xgjnyvzhdphkcef9xgcyymr0vd4kzcmrd9hx7cqp2hrq2qk3qh580kdxwqzt2cnzq9c92frh4ygs8j0wk8wh2dgnylxv8lt9c9gthljf6lgvqm8d09jlxdcf5k8s7eqqh8ptsuwxeae64u8cp47y9m9',
  description: '2%20Whole%20Blockaccino',
  paid: false,
  created: 1522542684,
  updated: 1522542684 
}

Examples Request: /charge

param: 
amount: quantite (number 1 - 4294967)
currency: BTC available only,
description: description payement
 let  amount=4294967, 
      currency="btc",
      description="2%20Whole%20Blockaccino";

client.charge(amount,currency,description,function(error,data){
  if(error) console.log("E!",error)
  console.dir(data);

});

Stream

Response

[ 
  { id: 'ch_7bVXiei4wFoYjTtQhyNeuvMf6EwS1Bd8nuxBwY8cBbgx',
      object: 'charge',
      amount: 4294967,
      currency: 'btc',
      amount_satoshi: 4294967,
      payment_hash: '61fc20ab4a5ad827eed5ab7d672886013f7f3e096051bda124fd5124ba578eb5',
      payment_request: 'lntb42949670n1pdvq2pjpp5v87zp262ttvz0mk44d7kw2yxqylh70sfvpgmmgfyl4gjfwjh366sdp9xgjnyvzhdphkcef9xgcyymr0vd4kzcmrd9hx7cqp2xqnfh0rvxwz7dhuaulmx0x8sfeuagqha9fw2h9avhv0um94etgjr34hm7uxcc2zxufca0dmdx22p8mfhnc5yanaq80ulh60p5zmhy2cq2nzjdm',
      description: '2%20Whole%20Blockaccino',
      paid: false,
      created: 1522542642,
      updated: 1522542642 
  } 
]

Examples Request: /stream (30000ms for one page)

param: 
size : number of payments of your wallet
let size=10;

client.stream(amount,currency,description,function(error,data){
  if(error) console.log("E!",error)
  console.dir(data);

});

API Reference

https://strike.acinq.co/#/documentation/api-reference

Contributors

Anis Haboubi

License

See LICENSE.txt for more info.