Code Monkey home page Code Monkey logo

webln-docs's Introduction

WebLN Docs

This houses the documentation for WebLN, a client library and spec for Lightning web apps to interface with web-enabled Lightning clients.

Requirements

  • Node 16+
  • Yarn 1

Run in Development

yarn && yarn dev

Build for Production

yarn && yarn build

Continuous Deployments

Pull requests will deploy a preview build to Vercel automatically. Merges into master will deploy the latest version of the site to https://webln.dev automatically.

webln-docs's People

Contributors

bumi avatar dependabot[bot] avatar microlancer avatar moritzka avatar perlover avatar philippgille avatar torkelrogstad avatar wbobeirne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

webln-docs's Issues

Question : what is flow of lightning game ?

i'm a newbie of lightning and trying to build lightning game ( like https://thundersats.com/ )
what is flow of game ?
like this, isn't it ?

          Connect `Thundersats` Lnd node
                       |
                      BET
                       |
                 send payment
                       |
                      Play
                   ____|____
              |                 |
              win            lose
                |
   makeInvoice -> send

BUT lightning don't have SmartContract . What makes sure players are not scammed ?
i mean when player send payment game not start or when player win Thundersats not paying the invoice.

do you know any opensource lightning network game ?

Thanks !!!

Handling automatic WebLN login

Some wallets (like Alby) allow you to enable automatic website logins. Is there any way to detect that and log the user in automatically (call requestProvider) in that case?

One way is to save whether the user used a WebLN wallet last time he was on the website (and save it to the local storage). Then try to call requestProvider when he visits next time, but in this case when user doesn't have the automatic logins enabled it will just annoyingly pop up his wallet.

A fix could be a parameter in the requestProvider method (something like "noPopup"), which would return the provider only if it doesn't require popping up (otherwise returns null or throws), then one can try calling that on page load to see if any provider is "connected" to the website already without annoying the user with a pop up.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.