Patreon on Bitcoin

We introduce a recurring payment contract that allows a customer to deposit money in and a business to collect payment at a regular interval.

Subscription

Implementation

The contract have three public functions.

Recurring Payment Contract
  • The first one is for the user to deposit more money.
  • The second one allows the user to opt out at any time. Note that if the user needs to provide a cancellation notice before stopping the recurring payment, it can be achieved on the basis of this contract with minimal modifications.
  • The last one is for the merchant to withdraw certain amount of money from the contract periodically. It contains an nLockTimeVerify part to prevent the merchant from draining it at once. Also note nLockTimeVerify only applies to the merchant and the user can still deposit more money or opt out.

Applications

While this contract is very useful for subscription payment, a similar contract can also be designed to work like a checking account: have a spending limit per day, have an emergency closing if your phone is stolen and a secret key to retrieve the money, have special condition to spend your money, … The possibilities are endless.

--

--

--

sCrypt Inc (https://scrypt.io) is a company with a mission to provide integrated on-chain smart contracting solutions using the original BitCoin Protocol on BSV

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

All The Fintech — Sept 25th, 2017

XT will open USDC/USDT trading pair

INVESTOR SPOTLIGHT: Master Ventures

ProBit Global Lists SAYLORMOON (SMOON)

BTC, ETH, XRP Daily report- 24th March, 2022

An overview of the $MOK Token

Qitcoin-QTC listing on CoinW

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
sCrypt

sCrypt

sCrypt Inc (https://scrypt.io) is a company with a mission to provide integrated on-chain smart contracting solutions using the original BitCoin Protocol on BSV

More from Medium

Web3, NFT’s and DeFi are a sham without a blockchain scalable at L1

Solo Mining with Blockstream Satellite

Algorand: Fundamentals, technicals, tokenomics and future outlook

Bitcoin & Ether heading $100K & $5K | Bitcoin News