[WordPress] 外掛分享: Login with NEAR

首頁外掛目錄 › Login with NEAR
WordPress 外掛 Login with NEAR 的封面圖片
10+
安裝啟用
★★★★★
5/5 分(3 則評價)
127 天前
最後更新
問題解決
WordPress 6.0.1+ PHP 7.4+ v0.3.3 上架:2022-12-22

內容簡介

「Login with NEAR WordPress外掛」可透過簡單的短代碼在WordPress網站上輕鬆設置和自定義使用NEAR功能的登入。

優點

支援最流行的Near錢包:外掛支援「Near Wallet」、「My Near Wallet」、「Here Wallet」、「Meteor Wallet」和「Sender」。

簡單的註冊和登入:如果使用者有Near錢包,他已經可以使用您網站上的所有功能並且已被識別為WP使用者。

使用單一端點呼叫智能合約:外掛是官方Near Wallet Selector(https://github.com/near/wallet-selector)的包裝實現。如果您使用智能合約,它提供使用有限訪問金鑰的可能性。此外,您可以進行調用以更改/查看另一個智能合約中的方法。

易於修改:您可以輕鬆更改登入、登出按鈕文字,並提供進階的類別來從程式碼自訂樣式

針對外掛開發人員

如果您想要創建智能合約並從已登入使用者中調用它,您可以簡單地按照以下方式進行操作:
調用方法:await window.mainWallet.viewMethod({contractId: string, method: string, args: {} }
更改方法:await window.mainWallet.callMethod({contractId: string, method: string, args: {}, gas: number, deposit: number})

重要鏈接

外掛示範:http://livedemo.kinsta.cloud/

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.3.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Login with NEAR」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Login with NEAR is a WordPress plugin that enables seamless Web3 authentication by allowing users to log in using their NEAR Protocol wallets. By integrating the HOT Connector, the plugin supports various NEAR-compatible wallets, including Hot Wallet, MyNearWallet Meteor Wallet, Intear Wallet.
🔐 Key Features

NEAR Wallet Integration: Facilitates user authentication through popular NEAR wallets, streamlining the login process for users already engaged in the NEAR ecosystem.

Smart Contract Interaction: Provides the ability to call smart contract methods directly from the WordPress site, supporting both view and change methods, and allowing the use of limited access keys for enhanced security.

Customizable Shortcode: Utilizes a simple shortcode [login_near_link] to embed the NEAR login button anywhere on the site, with options to modify button text and apply custom CSS classes for styling.

User Registration and Login: Automatically registers and logs in users who authenticate via their NEAR wallets, creating corresponding WordPress user accounts and simplifying user management.

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

🧩 Use Cases

Web3 Communities: Ideal for blockchain-based communities seeking to authenticate users through NEAR wallets.
Decentralized Applications (dApps): Enables dApps built on WordPress to interact with NEAR smart contracts, facilitating decentralized functionalities directly from the website.
Token-Gated Content: Supports the creation of exclusive content accessible only to users authenticated via NEAR wallets, enabling token-based access control.
By integrating blockchain authentication into WordPress, the Login with NEAR plugin bridges the gap between traditional web platforms and decentralized technologies, offering a user-friendly solution for incorporating Web3 functionalities into your website.

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/

延伸相關外掛

文章
Filter
Apply Filters
Mastodon