Login with NEAR Login with NEAR

Login with NEAR

Created by: Learn NEAR Club

Rating:
Downloaded: 2k times

Login with NEAR WordPress plugin allows to easy setup and customize login with NEAR functionality at your WordPress site by using simple shortcode [login_near_link].

Benefits

  1. Provides the most popular Near Wallets: Seamlessly integrate with popular NEAR wallets: “Mintbase Wallet” and “Here Wallet”.

  2. NEAR Protocol Support: Leverage the speed, low transaction fees and modern blockchain technology of the NEAR protocol.

  3. Effortless Registration and Login: Users with NEAR wallets can seamlessly access your site’s functionality and are automatically identified as WP Users.

  4. Call smart contracts from single endpoint: Plugin is a wrapped implementation for official Near Wallet Selector (https://github.com/near/wallet-selector). If you use a smart contract it provides possibility to use limited access key for it. Also, you can make calls to change/view methods on another smart contracts.

  5. Customization Flexibility: Modify login/logout button text and apply advanced styling with ease directly from the code.

For WordPress developers

  • Integrate smart contracts effortlessly and call them from logged-in users using simple JavaScript methods:7:
  • View method: await window.mainWallet.viewMethod({contractId: string, method: string, args: {} }
  • Change method: await window.mainWallet.callMethod({contractId: string, method: string, args: {}, gas: number, deposit: number})

Important links

  • Plugin Demo: http://livedemo.kinsta.cloud/

Screenshots

  • Fill the form with your configs: contract-id (your contract id, optional), login/logout button text (text that will be presented on frontend) classes (for extra styles), network (to use testnet or mainnet) screenshot-1.png.
  • Link will be on your site  screenshot-3.png.
  • For now plugin supports NearWallet, MyNearWallet, Here Wallet screenshot-4.png.
  • Logout button will replace login button after login screenshot-5.png.

Categories

Get New Themes & Resources