How do I connect my cardano website (dapp) with cardano mobile wallet. currently, I am using yoroi-frontend for desktop browsers.
1 Answer
Look in the window object for window.cardano
and then look for the property yoroi
and then you can interact with the public API.
To enable the wallet use window.cardano.yoroi.enable()
. This will return an object with the endpoints to interact with the wallet or will fail if the user does not allow to read the wallet.