lnc-n-captcha
v0.0.6
Published
web3 captcha solution based on near protocol
Downloads
14
Readme
How to Use nCaptcha
Installation:
add script to your package json
use npm install
import initNCaptcha from package;
Add the following element inside your form:
<div id="nCaptcha-verification" data-account="SITE_OWNER.near" data-price="0.02">
Replace
SITE_OWNER.near
with your NEAR wallet address. You can learn more about NEAR wallets here. Thedata-price
attribute represents the cost of passing the captcha.nCaptcha provides
window.nCaptchaWallet.nCaptcha.isValid
andwindow.nCaptchaWallet.nCaptcha.transaction
for checking and dynamically updating the captcha validation. You can refer to the basic implementation example in theexample
directory.
Example:
You can find examples https://github.com/Learn-NEAR-Club/nCaptchaExample