CoinTipper server api based on jQuery.CoinTipper, written with Sinatra.
This version supports any coin.
The code is hosted on Heroku, so you can use the widget in an embed code.
https://cointipper.herokuapp.com
You can create a button by using the following url scheme:
https://cointipper.herokuapp.com/type/currency/iso/address/label
https://cointipper.herokuapp.com/tip/bitcoin/BTC/1G967MwCf6XsMufpot3wHzbYnU3d2RevD5/CoinTipper
https://cointipper.herokuapp.com/donate/dogecoin/DOGE/DAxYkK3nGQPasscKYmbMswQJoV3h8y4aEW/CoinTipper
https://cointipper.herokuapp.com/donate/kittehcoin/MEOW/KTxtYiB28YV5pBgy5GRwdFqWDx9RERVRNv/CoinTipper
The buttons are generated using the 5 parameters in the url (/type/currency/iso/address/label). No trailing '/', and all params are required (in that order).
<embed src="https://cointipper.herokuapp.com/tip/bitcoin/BTC/1GMwCf6XsMufpot3wHzbYnU3d2RevD5/CoinTipper-Donation-Jar" height="38" width="150">
Copy/paste this where you want your button to appear, and replace the parameters with your own.
For spaces in the "label" parameter, use a dash ("-"):
.../CoinTipper-Donation-Jar
Any coin can theoretically work with it, just pass in its name, ISO and Address - users' local Wallets will recognize the url generated by the widget.
- Clone the repo.
~ cd
into the repo.bundle install
.~ rackup -p 4567
.