Skip to content

request: Add a CheckConnection method #525

@RezaRahemtola

Description

@RezaRahemtola

While integrating Adena in my project, I thought that it could be great to have an "autoconnect" feature just like in Ethereum with wagmi.

Currently I have no way of implementing this, as it's the AddEstablish method that returns a type of ALREADY_CONNECTED, but calling this will prompt the user to connect his wallet if it isn't connected.

Having a method for this would be great, for example CheckConnection that would not prompt the user to establish a connection but simply return the status (so if it's already connected, the frontend can fetch the account information to auto connect the user, else wait for the user to click a button in the UI).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions