Hi there!
Unlock is a protocol for memberships! This shows a very basic example of what it is to add Unlock to a Glitch page.
With Unlock, you can easily show or hide content based on whether visitors have paid to become members! The box below will show content based on whether you are indeed a member or not to the lock at
.
Loading!
Thanks for being a member ;)
Please, become a member now!
Frequently Asked Question
Do I really need a crypto wallet? The short term answer is yes. Unlock is built using Ethereum and you need an Ethereum wallet to use it. Soon, Unlock will offer more options like credit cards... For now, just install MetaMask . And DM me so I can send you a few cents!
But why did you build this with a blockchain? Because we think memberships cannot be "owned" by any platform or APIs. Blockchains are good to build permissionless protocols. Once you deployed a lock, or purchased a key, nobody can take them away from you. Cryptocurrencies are programmable moneys (note the emphasis on programmable...), like the the web is programmable documents!
It's just JavaScript, so I guess I can just view source and cheat? Yes you can. It would actually be trivial to make it a lot tighter at the expense adding a bit more friction. But let's face it, the challenge on the web is to reduce friction, not fraud!
How do I do the same thing? Click on the fishes, and then click on "remix on Glitch" and follow the steps! You should then change the index.html
, index.js
and style.css
files. You can also change unlock.js
file, if anything to use your own lock address there!
How do I do a more complicated thing? Unlock is a protocol and you can do a lot more! Check our docs !