Example Apps
Overview
This guide includes a variety of small applications that illustrate the use of the Strike API. The code for these apps are available in the linked Github repositories.
Sending Payments
Strike.Army
Strike.army lets you passively send and receive cash payments from your Strike account. Once authorized, you can set parameters for Strike.Army to send payments from your Strike cash balance. These parameters include amount, frequency, and reusability limits, so that payments are only sent in a manner that you have approved. Once the parameters are set, Strike.Army displays a shareable Bitcoin Lightning QR code, which once scanned by a Lightning-enabled wallet will send dollars from your Strike cash balance and deliver as bitcoin to the scanner’s wallet.
Additionally, Strike.Army lets you view your Strike cash balance in-app and receive dollar payments through Bitcoin lightning QR codes.
You can find the deployed version of the app at strike.army and the code on https://github.com/v0l/strike.army.
Receiving Payments
Pay Me in BTC
Pay me in BTC allows you to create Bitcoin Lightning invoices from your Strike account, which can be shared as unique URLs. Simply enter a dollar amount to be invoiced, an expiration date, and details for presenting the invoice, and Pay Me in BTC will generate a unique URL where the Bitcoin Lightning invoice is displayed. Payments to that invoice will be sent to your Strike cash balance.
You can find the deployed version at paymeinb.tc and the code on https://github.com/verbiricha/invoices
Directing Payments
Splits
Splits lets you split a dollar amount evenly across any number of Bitcoin Lightning invoices. A $100 restaurant bill can be split amongst your five friends, by creating five Bitcoin Lightning invoices for $20 each, which are all payable to your Strike cash balance.
A deployed version of the app is available online at checksplits.com and the code on https://github.com/verbiricha/splits
PlebPay
PlebPay allows you to create a paywall for URLs. You simply specify a paywall amount, a paywall title, and a destination URL. PlebPay will generate a unique paywall URL, which will prompt visitors to pay a Bitcoin Lightning invoice in order to proceed to your destination URL. Paywall payments will be sent directly to your Strike cash balance.
You can find the deployed version at plebpay.com and the code on https://github.com/SamSamskies/PlebPay
Rankster
Rankster lets you create polls with paywalls. You simply create a poll and set a paywall amount. To cast a vote in the poll, participants must pay a Bitcoin Lightning invoice. The payment will be sent directly to your Strike cash balance.
You can find a live demo at rankster.me and the code on https://github.com/strikewalker/rankster
Reacher
Reacher.me allows you to create a paywall for your email address. By signing up and setting a paywall amount, you can publicly share your reacher.me email address. When someone sends a message to your reacher.me email address, they will receive a reply containing a Bitcoin Lightning invoice. Once they have paid, their message will be forwarded to your real email address and their payment will be delivered to your Strike cash balance.
Find the website running at reacher.me and the code on https://github.com/strikewalker/reacher
Plebshop
Plebshop allows Strike users to quickly create their own point-of-sale checkout solution and receive Bitcoin Lightning payments directly to their Strike cash balance. Simply connect your Strike account and create your product list by adding product names and prices. At the point of sale, simply add products to the shopping cart and select “Checkout”, and a Bitcoin Lightning invoice will be generated for the total purchase amount, payable directly to your Strike cash balance.
Try it out at plebshop.me and the code on https://github.com/korhaliv/plebshop
Other
Strike Oauth
Strike Oauth is a simple proof of concept that demonstrates Strike Oauth Connect.
You can find a live demo at strike-oauth-example.vercel.app and the code on https://github.com/mrfelton/strike-oauth-example