Skip to content

This code is for a webpage that allows users to connect Pelagus Wallet directly from the browser.

Notifications You must be signed in to change notification settings

TsarenkoKir/Pelagus-Onboarding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

This code is for a webpage that allows users to connect their Pelagus Wallet directly from the browser.

Main Features:

There is a button labeled "Connect Pelagus Wallet". When you click this button, the webpage will try to connect to your Pelagus Wallet. After clicking the button and successfully connecting to the wallet, the webpage will display your wallet's address. Initially, it says "Wallet Address: Not Connected yet" to indicate that no wallet is connected.

How It Works:

When you click the "Connect Wallet" button, the webpage checks to see if the Pelagus Wallet extension is available in your web browser. If the wallet is detected, the webpage asks for permission to access the account information from the wallet. If permission is granted, the first account's address from the wallet is displayed on the webpage, showing that the connection was successful. If the wallet is not found or there's an issue with the connection, the webpage either asks you to install the Pelagus Wallet or logs an error message for troubleshooting.

Connecting Pelagus

To run http-server:

npm install --global http-server

http-server

Here is a step-by-step video guide: https://youtu.be/9rFBPJK19wQ

About

This code is for a webpage that allows users to connect Pelagus Wallet directly from the browser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages