0.0.6 • Published 1 year ago
lnc-n-captcha v0.0.6
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.nearwith your NEAR wallet address. You can learn more about NEAR wallets here. Thedata-priceattribute represents the cost of passing the captcha.nCaptcha provides
window.nCaptchaWallet.nCaptcha.isValidandwindow.nCaptchaWallet.nCaptcha.transactionfor checking and dynamically updating the captcha validation. You can refer to the basic implementation example in theexampledirectory.
Example:
You can find examples https://github.com/Learn-NEAR-Club/nCaptchaExample