Connectionless Connection
Last updated
Last updated
ButterFly AI offers an innovative solution for connecting to decentralised applications (dApps) without the need for traditional wallet connection methods, thereby providing a seamless and secure user experience. This connectionless dApp connection process significantly reduces security vulnerabilities while maintaining the full functionality of blockchain interactions.
Initiating the Connection
When a user clicks on the “Connect Wallet” button on a dApp using the ButterFly solution, they are prompted to input their wallet address.
This wallet address is then sent to the ButterFly API, which facilitates the rest of the connectionless process.
Creating Verification for Ownership
The ButterFly API generates a unique wallet address to which the user must send a nominal transaction of 0.0001 ETH.
This transaction serves as proof of ownership, as only the true owner of the wallet can authorise this action.
Verifying Ownership
ButterFly API reads the wallet’s transaction activity and verifies the receipt of the 0.0001 ETH.
Once the ETH is received, ownership is confirmed, and the user’s data—such as wallet address and verification status—are stored in the dApp’s database with the help of the ButterFly API.
Upon successful verification, the ButterFly API becomes the interface for accessing and managing relevant wallet information. Using this connectionless verification, the dApp can pull important data, including:
Token Holdings: Quantity and types of tokens held by the user.
$ Value of Holdings: The total monetary value of the tokens held.
Transaction History: Records of past transactions.
Blockchain Interactions: Data on user interactions with other dApps.
Staked Tokens: Information on tokens that the user has staked.
Revenue Sharing Calculation: Calculations related to profit-sharing opportunities.
Leaderboard Ranking: Data on user standing for rewards or competition-based systems.
This approach allows the dApp to store important but non-sensitive data in its database, such as wallet ownership details and on-chain activity, without requiring or storing private keys—significantly reducing the risk of data breaches.
Once the ownership is verified and user data is stored, the user gains access to various features and functionalities within the dApp. These features are facilitated by data pulled via the ButterFly API, which is stored in the dApp’s database. The connectionless approach provides a seamless way to interact with:
Staking Pools: Users can stake their tokens directly through the dApp.
Revenue Sharing: Automatically calculated and distributed based on wallet holdings.
Leaderboard and Reward Systems: Users can track and participate in competitions or performance rankings.
Account Management: View and manage token balances or on-chain activities without any direct wallet interaction.
By adopting a connectionless connection process, ButterFly AI aims to enhance both user security and experience. Users do not need to grant ongoing permissions or connect their wallet repeatedly, reducing their exposure to malicious activities. Instead, the ownership verification through the nominal ETH transaction ensures that interactions are conducted securely and without compromising on ease of use.
This connectionless verification represents a paradigm shift in how blockchain dApps handle user authentication and data access, combining the simplicity of web2 login experiences with the security features of blockchain technology.