Giter VIP home page Giter VIP logo

satscontact's Introduction

Satscontact

Automatically generates @sats.contact Lightning addresses and real-time converts received amounts in Cashu tokens sent to the Telegram Chat. Very important to setup the Telegram username before accessing the bot the first time.

The generated address will be in this form:

[email protected]

Please note that for being compatible with LNURL standards and also with Telegram ones, the username may differ from your Telegram User. For example if your Telegram user contains uppercase letters they will be converted in lowercase and if unallowed chars are in it, they will be stripped.

For cashu tokens redeem, it's suggested cashu.me, which has been tested with this implementation. It works fine also when sending sats Lightning payment using redeemed tokens.

How to Use the Bot:

  • open the Bot SatsContactBot on Telegram
  • run command /start on the Bot
  • take note of provided LNURL and Lightning address
  • start receiving eCash tokens by receiving Lightning Sats to the provided address

Configuration

  • General: configure parameters in settings.ini (copy from settings.ini.example). Setup Lnbits connection parameters and domain name for the Lightning address. Domain name must have a valid web certificate. This file contains the Telegram API Key as well. Use botfather to get one.
  • Nginx: configure the default file with allowed IP (allow the IP where the Lnbits is located) and domain name (domain name for the Lightning address)
  • Certificate: put a valid certificate as specified in default file (for Lightning address' domain name)
  • Mint: configure the .env (from .env.example) with details of the mint (you can connect to any mint you wish)

Applications and usecases for SatsContact

1) Receive TPOS Lightning Lnbits payments as eCash

  • configure a LNBits instance with the plugins: TPOS, Scrub;
  • create a new TPOS that fits your needs;
  • create a new Scrub connected to local wallet (the same where TPOS is connected);
  • in Scrub configuration set as target LN Address, your address on satscontact;

that's it. Now everytime someone pays at your POS, you will get the same amount in Sats as eCash in a Telegram message to your Telegram account.

2) Pay people using eCash

  • instead of sending a LN payment directly to your destination Lightning address, connect to @SatsContactBot in Telegram and get your own generated Lightning address
  • send the payment to your generated Lightning address
  • wait for the eCash being generated
  • take the generated eCash and forward it to your destination simply forwarding the message or copying/pasting the eCash string

Disclaimer

Please be informed that:

  • This software is beta software
  • Cashu is beta software as well
  • Lightning network itself is in beta development stage

So use the system at your risk.

satscontact's People

Contributors

massmux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

22388o

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.