0.0.1 • Published 11 months ago

lnc-n-captcha v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

How to Use nCaptcha

Installation:

  1. add script to your package json
  2. use npm install
  3. import initNCaptcha from package;
  4. 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. The data-price attribute represents the cost of passing the captcha.

  5. nCaptcha provides window.nCaptchaWallet.nCaptcha.isValid and window.nCaptchaWallet.nCaptcha.transaction for checking and dynamically updating the captcha validation. You can refer to the basic implementation example in the example directory.

Example:

You can find examples https://github.com/Learn-NEAR-Club/nCaptchaExample

0.0.1

11 months ago