Coder Social home page Coder Social logo

isabella232 / btcbtn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from payload/btcbtn

0.0 0.0 0.0 144 KB

⚠️ DEPRECATED a bitcoin button client-side server - donate on a website with 2 clicks, no copy paste needed

License: MIT License

Python 85.25% CSS 14.75%

btcbtn's Introduction

deprecated!

btcbtn

  • today bitcoin enabled websites have a line with a bitcoin address so you can copy and paste it to donate some bitcoins

  • btcbtn is a system to switch this copy paste line into a button so you need only (at the time) 2 clicks to donate an amount of bitcoins

  • you don't need to register with a third service where you put your bitcoins into a remote wallet

  • unfortunatly the client side needs this software running in the background and bitcoin in the PATH when running btcbtn or provide the path to your bitcoin executable as an argument

    btcbtn [--bitcoin=<PATH TO BITCOIN>] [--daemon]
  • quit btcbtn with killall btcbtn when you called it as a daemon :P

the button

  • put this link or the code for the button on your website and substitute at least the bitcoin address with your bitcoin address

  • change also the amount if you like in both places

    <a href="http://localhost:8170/donate/12UjAGVyKwmH3dN7TmEvxGLf3iomNX8G43?amount=0.1">
      donate 0.1 BTC <br>
      12UjAGVyKwmH3dN7TmEvxGLf3iomNX8G43
    </a>
  • the same a little bit styled

    <div class="btcbtn"
        style="
            display: inline-block;
            margin: 0.1em;
            padding: 0.5em;
            -khtml-border-radius: 0.3em;
            -moz-border-radius: 0.3em;
            -webkit-border-radius: 0.3em;
            border-radius: 0.3em;
            background-color: #CCFF55;
        ">
        <a href="http://localhost:8170/donate/12UjAGVyKwmH3dN7TmEvxGLf3iomNX8G43?amount=0.1">
            donate 0.1 BTC <br>
            12UjAGVyKwmH3dN7TmEvxGLf3iomNX8G43
        </a>
    </div>

architecture

  • it uses python and its batteries

  • listen on localhost:8170

  • show confirmation site on HTTP GET /donate/[0-9a-zA-Z]+?amount=(\d+(.\d+)?) which has a link to the confirmation

  • donate on confirmation

  • to donate, call bitcoin sendtoaddress ADDRESS AMOUNT

future plans

  • fraud prevention for browsers which don't show the url line
  • a better styled button
  • integration with bitcoin
  • donate with latency so you can revoke a donation and dont need a confirmation ultimately resulting in 1-click bitcoin transfer

btcbtn's People

Contributors

payload avatar

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.